Challenge!
- Fork/Clone
- Create and activate a virtualenv
- Install the requirements
Update project/server/config.py, and then run:
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"or
$ export APP_SETTINGS="project.server.config.ProductionConfig"$ python seed.py$ python manage.py runserver| Endpoint | Method | Payload | Action |
|---|---|---|---|
| /api/v1/ping | GET | n/a | Sanity check |
| /api/v1/stats | GET | n/a | GET all stats |
| /api/v1/stats/:uuid | GET | n/a | GET single stat |
| /api/v1/stats | POST | view | Add data |
Without coverage:
$ python manage.py testWith coverage:
$ python manage.py covWant to test from the client side? With the serving running, open a new terminal tab and run an HTTP server in "project/client".