(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| require 'rake' | |
| require 'rake/testtask' | |
| Rake::TestTask.new do |t| | |
| t.test_files = Dir.glob('spec/**/*_spec.rb') | |
| end | |
| task(default: :test) |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| from django.conf.urls import patterns, url, include | |
| from rest_framework_mongoengine.routers import MongoSimpleRouter | |
| from api.views import TodoViewSet | |
| router = MongoSimpleRouter() | |
| router.register(r'todo', TodoViewSet) | |
| urlpatterns = patterns( | |
| '', |
| from rest_framework.authentication import TokenAuthentication | |
| from .models import MongoToken | |
| from rest_framework import exceptions | |
| class MongoTokenAuthentication(TokenAuthentication): | |
| model = MongoToken | |
| def authenticate_credentials(self, key): | |
| try: |