Back-end developer capstone project - LittleLemon
Please run the following commands in sequence
# activate virtual environment
pipenv shell
# install all dependencies from Pipfile.lock
pipenv install
# Creates migration files based on changes to the models.
python manage.py makemigrations
# Applies pending migrations to the database.
python manage.py migrate
Start the server
python manage.py runserver
-
LittleLemon Project
-
Restaurant App
-
HOME PAGE
-
Restaurant's Menu
-
Signle item in Menu
http://127.0.0.1:8000/restaurant/menu/pk=id (change id to a number, such as 1)
-
Booking Tables
-
API Booking
-
-
Authentication and Authorization
-
Administration Panel
-
API Token Generator
-
User list
-
-
API:
- http://127.0.0.1:8000/api
- http://127.0.0.1:8000/api/api-auth
- http://127.0.0.1:8000/api/menu
- http://127.0.0.1:8000/api/menu/pk=id (change id to a number, such as 1)
- http://127.0.0.1:8000/api/menu-items
- http://127.0.0.1:8000/api/menu-items/pk=id (change id to a number, such as 1)
- http://127.0.0.1:8000/api/message
- http://127.0.0.1:8000/api/api-token-auth
- http://127.0.0.1:8000/api/bookings
- http://127.0.0.1:8000/api/categories
- http://127.0.0.1:8000/api/bookings
- http://127.0.0.1:8000/api/categories
- http://127.0.0.1:8000/api/cart/menu-items
- http://127.0.0.1:8000/api/orders
- http://127.0.0.1:8000/api/orders/pk=id (change id to a number, such as 1)
- http://127.0.0.1:8000/api/groups/manager/users
- http://127.0.0.1:8000/api/groups/delivery-crew/users
-
# create superuser to log in the adminitration panel
python manage.py createsuperuser --username=admin --email=admin@littlelemon.com
# password: adminlemon@123
- username: admin
- password: adminlemon@123
- email: admin@littlelemon.com
CREATE USER 'testuser'@'localhost' IDENTIFIED BY 'testlemon@123';
CREATE USER 'joe'@'localhost' IDENTIFIED BY 'joelemon@123';
python manage.py test