Skip to content
An example repository of combining Django Rest Framework with AngularJS
Python CoffeeScript
Find file
Pull request Compare This branch is 1 commit ahead, 22 commits behind kevinastone:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example
.bowerrc
.gitignore
Gruntfile.coffee
Makefile
Readme.markdown
bower.json
create_db.sh
create_photos.py
create_posts.py
create_users.py
manage.py
package.json
requirements.txt
setup.py

Readme.markdown

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

You're encouraged to setup a virtualenv to work in prior to configuring the dependencies.

  1. Install Python Requirements

    pip install -r requirements.txt
    python setup.py develop
    
  2. Install Assets

    npm install
    bower install
    
  3. Compile Assets

    grunt
    
  4. Setup the Database

    make create_database; make make_fixtures
    
  5. Run the Server

    ./manage.py runserver
    
Something went wrong with that request. Please try again.