The items catalog is the 2nd Project in Udacity's Fullstack Nanodegree.
- You can signup/signin and create your own favourite movies catalog by creating categories and sub-items inside those categories.
- Only you has the access to modify your list or categories, so don't worry!
- You must login or signup to be able to create categories or items, Otherwise you can only view the existing items.
Items Catalog uses a number of tools to work properly:
-
Install all the above tools.
-
Install all modules needed for the project using command line:
pip install -r requirements.txt
- Clone this repo by going to your desired location
- Right click anywhere and choose
Git bash here
, Then use the following console commands
$ git clone https://github.com/ifaraag/udacity_items_catalog.git
- Launch Vagrant with the following commands:
$ vagrant up
Then,
$ vagrant ssh
- Change directory to Vagrant folder
$ cd /vagrant
- Setup the database
$ Python database_setup.py
- Populate the database with some data
$ Python lotsofmenus.py
- Launch main project file:
$ Python project.py
- Open the browser and go to http://localhost:5000
Returns JSON format of all items and categories together
/catalog/JSON
Returns JSON format of all categories
/categories/JSON
Returns JSON format of all items
/items/JSON
Returns JSON format of the all items inside specific category
/categories/<int:category_id>/menu/JSON
Return JSON format of the a single item inside a category
/categories/<int:category_id>/menu/<int:item_id>/JSON