knamroud / littlelemon

Capstone project from the Meta Backend Developer Professional Certificate on Coursera.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LittleLemon (Meta Backend Developer Capstone)

Coursera Meta Django
Capstone project for the Meta Backend Developer Professional Certificate on Coursera.
My course certificate

Running

Please create a .env file like this, or the project won't run.

SECRET_KEY="your-secret-key"
DB_NAME="db"
DB_HOST="127.0.0.1"
DB_PORT="3306"
DB_USER="root"
DB_PASSWORD=""

Then, install the dependencies and apply migrations:

pipenv install
pipenv run python3 manage.py makemigrations
pipenv run python3 manage.py migrate

Finally, run the server:

pipenv run python3 manage.py runserver

Notes

Only authenticated users can book.
Only superusers can see all the bookings or add menu items. Test the following endpoints:

restaurant <- index, serving html contents
restaurant/menu <- get/post menu items through insomnia
restaurant/book <- get/post books through insomnia

I used authtoken for authentication, see the authn/urls.py file to check the endpoints.

About

Capstone project from the Meta Backend Developer Professional Certificate on Coursera.


Languages

Language:Python 70.4%Language:CSS 17.5%Language:HTML 12.1%