charlon / frameworks-comparison

Django project that serves a REST api (via django-rest-framework) which is consumed by various client applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

frameworks-comparison

Django project that serves a REST API. For the clients, a comparison of various client-side js applications that consumes the API as well as a Django app using PJAX. PushState is supported across all the comparison apps.

Installation

Github

$ git clone git@github.com:charlon/frameworks-comparison.git

Virtualenv:

Turn the cloned repository into a virtualenv.

$ virtualenv frameworks-comparison
$ cd frameworks-comparison
$ source bin/activate

Dependencies:

Optional: Install nodeenv (if you don't have node installed globally)

$ pip install nodeenv
$ nodenv -p

Install LessCSS via Node

$ npm install -g less

Install the requirements

$ cd frameworks
$ pip install -r requirements.txt

Server

Export settings (for each terminal - for now)

$ export DJANGO_SETTINGS_MODULE=frameworks.settings.local

Create the database and seed:

$ python manage.py syncdb
$ python manage.py populate_db_profiling

Run server (using local settings):

$ python manage.py runserver 0.0.0.0:8000

About

Django project that serves a REST api (via django-rest-framework) which is consumed by various client applications.


Languages

Language:Python 54.1%Language:JavaScript 42.7%Language:CSS 3.2%