Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.22 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.22 KB

Author: Lai Man Tang

Github: https://github.com/littlecloud1/frameworks-restaurant

Date: 8-20-2018

Project

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.

Requirement

  • Python 3 version < 3.7 (cgi.parse_multipart does not work on 3.7)

Python Lib

  • Flask
  • SQLAlchemy
  • OAuth2Client
  • Request

Files

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

How To run:

To run the restaurant server you have to import the database from udacity

#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