You can install the followings either locally or in virtual machines, such as venv, vagrant, etc.
- Python 2.7
- Flask
- sqlalchemy
python chinesemenus.py
This will help establishing a databasepython finalProject.py
This will run the server atlocalhost:5000
- Open
localhost:5000
from your browser and you'll see the index page.
- structure
- sketch
- index
- menu
- add restaurant or menu item
- edit restaurant or menu item
- delete restaurant or menu item
For instance:
@app.route('/')
@app.route('/restaurants')
def allRestaurants():
return 'Successfully opening index page!'
- html & form
- build fake data in backend based on data structure
Establish database.
Return json data to let other developers play with it.
- CSS
- flash messages to better interact with users