A simple web app made with Python.
VirtualBox
Vagrant
SQL Alchemy
Flask
dicttoxml
https://pypi.python.org/pypi/dicttoxml
Set up VirtualBox and Vagrant to create your own server. With Vagrant installed, run:
$ vagrant up
$ vagrant ssh
$ cd <SYNCED PATH TO REPOSITORY>
Initialize and fill the database with these scripts.
$ python database_setup.py
$ python lotsofmenus.py
Run the web app finalproject.py:
$ python finalproject.py
The app runs on port 5000
:
http://localhost:5000/
Available in JSON and XML at the following endpoints:
List all restaurants:
http://localhost:5000/restaurants/json
http://localhost:5000/restaurants/xml
List all menu items for a given RESTAURANT_ID:
http://localhost:5000/restaurants/<RESTAURANT ID>/menu/json
http://localhost:5000/restaurants/<RESTAURANT ID>/menu/xml
List a single menu item:
http://localhost:5000/restaurants/<RESTAURANT ID>/menu/<ITEM ID>/json
http://localhost:5000/restaurants/<RESTAURANT ID>/menu/<ITEM ID>/xml