Skip to content

SruthiV/Item-Catalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Item-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 2.7
  • 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
$ Python database_setup.py
  1. Populate the database with some initial data
$ Python menus.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

Credits

Photo by Redd Angelo on Unsplash

Releases

No releases published

Packages

No packages published