Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kevinastone/django-api-rest-and-angular

An example repository of combining Django Rest Framework with AngularJS
https://github.com/kevinastone/django-api-rest-and-angular

Last synced: 13 days ago
JSON representation

An example repository of combining Django Rest Framework with AngularJS

Awesome Lists containing this project

README

        

# Django API with Django Rest Framework and AngularJS-Resource

This sample project is the companion of a [blog post](http://kevinastone.github.io/getting-started-with-django-rest-framework-and-angularjs.html) 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](http://localhost):

```
docker-compose up
```

### Manual

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 Bower + Grunt

npm install -g grunt-cli bower

3. Install Assets

npm install
bower install

4. Compile Assets

grunt

5. Setup the Database

make create_database; make make_fixtures

6. Run the Server

./manage.py runserver