Git Product home page Git Product logo

item-catalog's Introduction

item-catalog

Second project in Full Stack Web Developer Nano-Degree.

Outline

Project Overview

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.

Getting Started

First, fork the VM Configuration:

Log into your personal Github account, and fork the Udacity Fullstack Nanodegree repo

Second, clone the remote to your local machine:

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 

Third, run the VM, login to VM, logout from VM and shutdown 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

Forth, download item-catalog app:

install item-catalog application, and move it to fullstack-vm/vagrant directory.

Fifth, run item-catalog app:

After login into VM and change directory to /vagrant/item-catalog

1. initialize database:

python database_setup.py

2. populate database:

python lotsofmenus.py

3. run Flask web server:

python project.py

Project Pages

The homepage displays all available restaurants.

http://localhost:5000/

http://localhost:5000/restaurants/

Page shows all the items available for specific category.

http://localhost:5000/restaurants/1/

Page to login into application

http://localhost:5000/login

After logging, a owner user has the ability to add, update, or delete item.

http://localhost:5000/

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/

JSON Pages

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

item-catalog's People

Contributors

sarahalhumud avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.