a diary, store ratings and spending values at the restaurant, count total spending at the restaurant, calculate ratings, and set proper pricing tags from a summary of ratings from all users. Just backend.
virtualenv
$ virtualenv <env_name>
$ source <env_name>/bin/activate
(<env_name>) $ pip install -r path/to/requirements.txt
from project folder:
(<env_name>) $ python3 manage.py runserveror via Docker:
$ docker-compose up --buildalternatively, if you have a container already build-up:
$ docker-compose upproject will then be available at these hosts under port 0.0.0.0:8000:
to test app in docker, run tests like this while db container is up
$ docker-compose exec web python manage.py testavailable API endpoints:
[
'/api/token',
'/api/token/refresh',
'/api/customers',
'/api/customers/<str:username>',
'/api/restaurants',
'/api/restaurants/<int:restaurant_id>',
'/api/reviews/',
'/api/reviews/<int:review_id>',
'/api/visits/',
'/api/visits/<int:visit_id>',
]