Interactive Restaurant WebApp, where the user has a landing page of menus.
The user is then able to update, delete, or add more menus to the Restaurant WebApp.
Database used was SQLALchemy, (https://www.sqlalchemy.org/).
-
- The Database has two tables:
-
- Table 1: Restaurant: which includes name of restaurant and id column (primary_key)
-
- Table 2: Menuitem: which includes name, description, price, course (entree, appetizer, dessert), id (primary_key), restaurant_id (ForeignKey), restaurant
- flask-sqlalchemy
- python 3.7
- flask
- virtualenv
- httplib2
- requests
- oauth2client
- Create a VM; here are the steps Creating_A_VM
- Run the virtual environment
- Clone the project https://github.com/jesspencer/good-grub.git
- cd good-Grub
- Start the flask application that will allow the menu to show in your browser, with
python finalproject.py
- Open the WebApp by pasting the following into your browser: http://localhost:5000/restaurant/
If you would like to replace the menus in this project with ones of your own Do It!
- Delete the restaurantmenu.db file that you have cloned.
- Create restaurantmenu.db, with
python database_setup.py
- Open the lotsofmenus.py file in your text editor and replace the restaurant names, menu item names, and save file.
- Put some menus into the empty restaurant database, with
python lotsofmenus.py
- create a new restaurant
- see the menu
- edit/delete the restaurant
- edit/delete the menu item
- Interacting with these options will update the database.
Have a bug or a feature request? Please open an issue.
This Restaurant-Menu-WebApp documentation included in this repo in the root directory is built with Python virtual database server, Flask web framework, and SQLAlchemy. The docs may also be run locally in your Linux database server, or Linux version 2.7.9.
Jessica Spencer
- github.com/jesspencer
- twitter.com/js13142
- linkedin.com/in/spenje/