Skip to content

mohannadmnada/Item_catalog_project

Repository files navigation

***Item-Catalog_project; is the fourth project in the "Udacity Full Stack _Nanodegree"

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published