Skip to content

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

Notifications You must be signed in to change notification settings

knamroud/littlelemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks