Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kevinastone/django-api-rest-and-angular
- Owner: kevinastone
- Created: 2013-09-24T23:15:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-04-20T16:27:08.000Z (over 5 years ago)
- Last Synced: 2024-08-01T20:38:18.501Z (3 months ago)
- Language: Python
- Homepage: http://kevinastone.github.io/getting-started-with-django-rest-framework-and-angularjs.html
- Size: 1.13 MB
- Stars: 805
- Watchers: 52
- Forks: 298
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.markdown
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 develop2. Install Bower + Grunt
npm install -g grunt-cli bower
3. Install Assets
npm install
bower install4. Compile Assets
grunt
5. Setup the Database
make create_database; make make_fixtures
6. Run the Server
./manage.py runserver