Skip to content

Latest commit

 

History

History
54 lines (49 loc) · 989 Bytes

README.md

File metadata and controls

54 lines (49 loc) · 989 Bytes

Item-Catalog

Create a Tiles Catalog app where users can add, edit, and delete different types of tiles and different models in the tiles.

Setup and run the project

Prerequisites

  • Python 2.7
  • Vagrant99
  • 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 db_items.py
  1. Launch application
$ python catalog.py
  1. Open the browser and go to http://localhost:5000

JSON endpoints

Returns JSON of all Category

/category/JSON

Returns JSON of specific menu item

/category/<int:category_id>/item/<int:item_id>/JSON

Returns JSON of menu

/category/<int:category_id>/JSON