Author: Lai Man Tang
Github: https://github.com/littlecloud1/frameworks-restaurant
Date: 8-20-2018
This project aim to provide a user interface that user can create, read, update and delete restaurants and its menu. Also, user can eaily retreive data in 4 ways by using JSON.
There are some new features is ongoing:
- Oauth : implement google and Facebook OAuth login method.
- Python 3 version < 3.7 (cgi.parse_multipart does not work on 3.7)
- Flask
- SQLAlchemy
- OAuth2Client
- Request
Inputfile:
- webserver-restaurant.py: do_POST and do_GET function for restaurant CRUD
- webserver-post.py: return whatever user input
- database_setup.py: Restaurant database sqlalchemy schema
- lotsofmenu.py: Restaurant database from Udacity, I modify it to python 3 version
#build sqlalchemy database setup
python database_setup.py
#import data
python lotsofmenu.py
# run the server
python webserver-restaurant.py
The website will run in port 5000:
localhost:5000/restaurants