Django API with Django Rest Framework and AngularJS-Resource
This sample project is the companion of a blog post on how to get started with Django Rest Framework and AngularJS.
Dependencies
To setup and run the sample code, you're going to need npm
from NodeJS available to install the frontend code.
Setup
Docker
If you have a docker host, you can simply use docker-compose
to build the example, then open http://localhost:
docker-compose up
Manual
You're encouraged to setup a virtualenv
to work in prior to configuring the dependencies.
-
Install Python Requirements
pip install -r requirements.txt python setup.py develop
-
Install Bower + Grunt
npm install -g grunt-cli bower
-
Install Assets
npm install bower install
-
Compile Assets
grunt
-
Setup the Database
make create_database; make make_fixtures
-
Run the Server
./manage.py runserver