Skip to content

This project represents the end of Coursera's Meta Back-End Developer certification course.

Notifications You must be signed in to change notification settings

CesaHub00/Little-Lemon-Back-End

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Little-Lemon-Back-End

End of Coursera's Meta Back-End Developer course.

The main goal is to build the Little Lemon restaurant booking API.

There are 2 models:

  • Menu (table with the items in the menu)
  • Booking (table with the info about the reservation)

The serializer convert Django model instances into Python data types that can be easily rendered into JSON, XML or other types.

In the view.py there are structure that takes a web request and returns a responses.


Available Scripts

In the project directory,

$ cd Little-Lemon-Back-End/littlelemon

you can run:

python manage.py makemigration and/or python manage.py migrate

To save the models in models.py to the database.

python manage.py runserver

Open http://localhost:3000 to view it in the browser.

You can change the url to see the admin panel (admin/) or the menu (restaurant/menu); all the path are in the urls.py file in the project folder and in the restaurant folder.

python manage.py test

To test models created in the test.py file.