cd little-lemon-api
pip3 install pipenv
pipenv --python 3.11.8
pipenv shell
# Django
pipenv install django
# Frameworks
pipenv install djangorestframework
pipenv install django-debug-toolbar
# pipenv install djangorestframework-xml
pipenv install bleach
pipenv install djoser
# pipenv install djangorestframework-simplejwt
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver
Admin
admin
adminuser123$%^
Delivery crew
johndoe
johndoeuser123$%^
Manager
janedoe
janedoeuser123$%^
Customer
babydoe
babydoeuser123$%^
// Tailing / is very important, please check tailing / for rounts.
POST /auth/users/ for registration send json username and passsword in the body
POST /auth/token/login/
GET /auth/users
GET /auth/users/me/
GET /api/menu-items
GET /api/menu-items/<int:pk>
GET /api/groups/manager/users
GET /api/groups/manager/users/<int:pk>
GET /api/groups/delivery-crew/users
GET /api/groups/delivery-crew/users/<int:pk>
GET /api/cart/menu-items
GET /api/orders
GET/PATCH /api/orders/<int:pk>
exit