Final Project From Udacity Full-Stack Foundation Course
The project is a restaurant menu app with dummy data.
The project consists of:
- Setting up database
- CRUD operation
- Showing Flash Messages
- Implementing API end point
- Styling and improving user experience
- Python 2.7 or above
- SQLite 3
- Flask
- sqlalchemy
- Git
- Terminal or command prompt
Open up your terminal or command prompt and enter the following command to download
- $ git clone [email protected]:AungThiha/fullstack-foundation-final-project.git
Make sure the current directly is where all the codes downloaded under.
In your terminal or command prompt, run the following command
- $ python restaurant_data.py
You will see a sqlite database file named "restaurant.db" is created.
Open up your terminal or command prompt and run the command below:
- $ python finalproject.py
- get all restaurants
{base_url}/restaurants/JSON
- get all menu items in a restaurant
{base_url}/restaurant/int:restaurant_id/JSON
- get a menu item
{base_url}/restaurant/int:restaurant_id/int:menu_id/JSON
Note: base_url will be printed out when you run the app.
for example, say you get base_url of "localhost:8080"
and you wanna get all menu items in a restaurant with an id of 1,
you can get it with "localhost:8080/restaurant/1/JSON"