Skip to content

code-rush/item_catalog

Repository files navigation

Restaurant Menu App

Steps to run the application on local machine

  1. First of all you will need to download vagrant and virtual box on you computer and clone this repository https://github.com/udacity/fullstack-nanodegree-vm.

  2. Fire up the terminal and navigate to the vagrant directory.

  3. Excute following commands one at a time.

    vagrant up vagrant ssh

This will set the virtual environment for you application. Once you ssh into vagrant, it means your virtual enivronment is set up and run the application in this environment.

  1. Clone this item_catalog repository inside catalog folder inside vagrant.

  2. After you ssh into vagrant, navigate to the item_catalog inside catalog folder. See the command below:

    cd /vagrant/catalog/item_catalog

  3. Excute the following command, if you are running the application for the first time. This will install a Cross Site Request Forgery module that is needed for the application.

    sudo pip install flask-seasurf

  4. Now start the application by executing the following command

    python database_setup.py (only for the first time) python project.py

  5. Fire up a browser and go to http://localhost:5000/

You are successfully running the application on your local machine.

To populate the database with items, follow the steps(This is only if you are running the application for the first time)

  1. Run command

    python lotsofmenuwithusers.py

  2. Start the application again using

    python project.py

Application Experience

  • The first page contains the restaurants and the information about it. So, if any description or extra information is given to the restaurant, when you hover over it, you will see the description below the restaurant name tile.
  • You can get information about the all restaurants from three different API endpoints; JSON, XML and RSS.
  • Inside each restaurant contains the list of menu items that belongs to it. You can get the information of each item as well as all the items in the restaurant from three different API endpoints like restaurants.
  • You can log in using either google or facebook account.
  • Once you are logged in, you can add, edit and delete the restaurants that you created and the items in it.
  • Items can contain picture. Upload the picture for the item while editing or creating an item.
  • If you delete a restaurant, the items all the information about the item(including the picture) inside the restaurants will get deleted.
  • The menu page contains information about the creator of the restaurant.

About

A Web Application created using Python and Flask framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published