uhjish / p5-djankiness

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Basic Django-REST app with an AngularJS frontend (VisJS directive)

Was hacked together in a few hours and as such is missing tests, docs, tox, and production build optimizations.

Deployment

Goal is to show a set of Action with associated features:

  1. Title
  2. Description
  3. Assignee
  4. Deadline (due date)
  5. Done (yes/no)

There should be some indication of the actions relative to the current month. Also, a marker for whether the task is finished.

Standard CRUD operations through REST verbs should be allowed for Actions.

Caveats

Not using jinja2 for templating, but angular's templating system is much the same. Frontend routing is handle in angular /list, /edit/:item, /create Hijacking the /api-auth endpoint that comes with django rest-framework for handling common auth (this would be fixed in production using oauth2 to handle API and app auth simultaneously)

Angular app

  • packages all templates inline into index.html, and
  • all modules, controllers, and directives into app.js
  • missing require.js for dep management
  • missing uglify and browserify/webpack for packaging

Django app

  • uses default rest framework viewsets for CRUD/REST operations
  • couples them with two way serializers wrapping the models
  • missing staticfiles compilation and caching

About


Languages

Language:Python 48.4%Language:JavaScript 29.5%Language:HTML 20.8%Language:CSS 1.3%