Code Monkey home page Code Monkey logo

item-catalog's Introduction

Item Catalog

Its an application that provides a list of items within a variety of categories as well as provide a user registration and authentication system using (Google Accounts). Registered users will have the ability to post, edit and delete their own items.

Requirements

To run this project you are required to have a database software (provided by a Linux virtual machine) and the data to analyze. For this we recommend

  • Vagrant
  • VirtualBox

You can download it from virtualbox.org, here. You do not need to launch VirtualBox after installing it; Vagrant will do that. Vagrant is the software that configures the VM and lets you share files between your host computer and the VM's filesystem Download vagrant from vagrantup.com

To download the VM configuration, you can download and unzip this file: FSND-Virtual-Machine.zip This will give you a directory called FSND-Virtual-Machine. It may be located inside your Downloads folder.

You should have a new directory containing the VM files. Change to this directory in your terminal with cd. Inside, you will find another directory called vagrant. Change directory to the vagrant directory. Now you need to bring the virtual machine online (with vagrant up), do so now. Then log into it with vagrant ssh.

Database

The database named itemcatalog consist of three tables

  • The user table includes information about the users.
  • The category table includes the categories of catalog.
  • The category_item table includes items in each category.

Setup project

Clone the project into thevagrant directory, which is shared with your virtual machine.

Run the following command to set up the database:

python database_setup.py

To fill the database with dummy data, use the following command

python fill_database.py

Running the project

Project can be run just by the following command, given the database has been set up.

python project.py

Open http://localhost:5000/ in your favorite Web browser to see the application running.

JSON APIs

The project implements JSON endpoint where you can get the same information as displayed in HTML endpoints for list of categories and list of category items To get list of categories in catalog

http://localhost:5000/category/json

To get items in a particular category

http://localhost:5000/category/1/items/json

item-catalog's People

Contributors

shahroz16 avatar

Watchers

 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.