This project is built by working through tutorials from Django and django-rest-framework
REST consumer: mysite-react
REST provider
- ORM support - DB manipulation via code
- Migration - DB versioning, code first
- Routing - Parse and delegate HTTP request
Django does not come with RESTful support by default. In order to do this, include django-rest-framework
or flask
to app dependencies. This project takes django-rest-framework
.
- Pipenv 2018.11.26
- Python 3.6.7
// Create virtualenv and install project dependencies
$ pipenv install
// Activate virtualenv
$ pipenv shell
// Run migration
$ python manage.py migrate
// Start server
$ python manage.py runserver
// Exit virtualenv
$ exit
Visit swagger doc at: http://localhost:8000/swagger
- Visualize project structure and flow overview
- RESTful Websocket APIs
- React app to consume RESTful data
- Use
virtualenv
to make dependencies to project-scope level