This web app requires postgresql
and Python2.7
as basic system
requirements. If your system meets these requirements,
run pip install -r requirements.txt
to install all dependencies
needed for our app to work properly.
Run database_setup.py
by typing python database_setup.py
and press 'enter'.
In command line, run app.py
file by typing python app.py
.
Open up your browser and go to [localhost:5000], you will see our restaurant/menu app up and running. It supports basic Create, Read, Update, Delete functions for both restaurants and menu items. And integrated with Oauth for enhanced security.
For developers, this app provides three API endpoints where you can get data.
- You can get all restaurants in a json format by sending a
GET
request to/restaurants/JSON
- You can get all menu items for a specific restaurant by sending a
GET
request to/restaurants/<int:restaurant_id>/menu/JSON
. - You can get details of one menu item for a specific restaurant by
sending a
GET
request to/restaurants/<int:restaurant_id>/menu/<int:menu_id>/JSON
.