Restaurant Menu System
A restaurant menu system that allows for restaurants and menu items to be created, viewed, and modified on a python web server.
Setup
-
You must have python and flask installed.
-
To setup the database run
python database_setup.py
. This will create a sqlite database. -
If you would like to insert dummy data into the database for testing, run
python lotsofmenus.py
. -
To enable Google Sign In:
- Login to Google Developer Dashboard
- Create new credentials from (if you don't have them)
- Download client_secrets.json from your Google Developer Dashboard.
- Update the data-clientid in login.html with your clientid.
-
To enable Facebook Login:
-
Login to Facebook Developers
-
Create a new api key if you don't have one.
-
Create a file named fb_client_secrets.json with your app_id and app_secret key. The file should look like the snippet below.
{ "web": { "app_id": "YOUR_APP_ID", "app_secret": "YOUR_APP SECRET" } }
-
Update the appId in login.html with your Facebook appId.
-
Usage
To start the web server run python server.py