Skip to content

This project was developed as part of the capstone for the Meta Backend Developer course on Coursera. It showcases my abilities in Backend development.

Notifications You must be signed in to change notification settings

ongunakaycom/coursera-little-lemon-mysq

Repository files navigation

LittleLemon (Meta Backend Developer Capstone)

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

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

This project was developed as part of the capstone for the Meta Backend Developer course on Coursera. It showcases my abilities in Backend development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published