Second project in Full Stack Web Developer Nano-Degree.
item-catalog is a flask application that provides a list of items within a variety of restaurants as well as provide a user registration and authentication system. Registered users will have the ability to post, edit and delete their own items.
Log into your personal Github account, and fork the Udacity Fullstack Nanodegree repo
From the terminal, run the following command (be sure to replace with your GitHub username):
git clone http://github.com/<username>/fullstack-nanodegree-vm fullstack-vm
To run VM, change the directory to fullstack-vm
then run the vm using the following commands:
cd fullstack-vm
vagrant up
to log from your terminal into vm write the following command:
vagrant ssh
to logout from vm, write the following command in vm:
exit
to shutdown the vm, exit from vm then write the following command in your terminal:
vagrant halt
install item-catalog application, and move it to fullstack-vm/vagrant
directory.
After login into VM and change directory to /vagrant/item-catalog
python database_setup.py
python lotsofmenus.py
python project.py
http://localhost:5000/restaurants/
http://localhost:5000/restaurants/1/
http://localhost:5000/restaurants/
http://localhost:5000/restaurants/1/
http://localhost:5000/restaurants/1/new/
http://localhost:5000/restaurants/1/1/edit/
http://localhost:5000/restaurants/1/1/delete/
a. All restaurants with their menu items (JSON format) http://localhost:5000/restaurants/menus/JSON
b. Specific restaurant with its item (JSON format) http://localhost:5000/restaurants/1/menu/JSON
c. All restaurants (JSON format) http://localhost:5000/restaurants/JSON
d. Specific item of specific restaurant (JSON format) http://localhost:5000/restaurants/1/menu/1/JSON