Skip to content

Latest commit

 

History

History
55 lines (49 loc) · 1015 Bytes

README.md

File metadata and controls

55 lines (49 loc) · 1015 Bytes

Restaurant Menu Catalog

Create a restaurant menu app where users can add, edit, and delete restaurants and menu items in the restaurants.

Setup and run the project

Prerequisites

  • Python 3.6
  • Vagrant
  • VirtualBox

How to Run

  1. Install VirtualBox and Vagrant
  2. Clone this repo
  3. Unzip and place the Item Catalog folder in your Vagrant directory
  4. Launch Vagrant
$ Vagrant up 
  1. Login to Vagrant
$ Vagrant ssh
  1. Change directory to /vagrant
$ Cd /vagrant
  1. Initialize the database
$ python3 database_setup.py
  1. Populate the database with some initial data
$ python3 populate_db.py
  1. Launch application
$ python project.py
  1. Open the browser and go to http://localhost:5000

JSON endpoints

Returns JSON of all restaurants

/restaurants/JSON

Returns JSON of specific menu item

/restaurants/<int:restaurant_id>/menu/<int:menu_id>/JSON

Returns JSON of menu

/restaurants/<int:restaurant_id>/menu/JSON