Giter Site home page Giter Site logo

itemcatalog's Introduction

Item Catalog

An application that shows your items in catalog to everyone.

How to make Google OAuth2 Provider?

  • Open Google OAuth2 Provider
  • Go to Credentials
  • Click on Create credentials and choose OAuth Client ID
  • Choose Web Application
  • Set the name Item Catalog
  • Add http://localhost:8000in Authorized JavaScript origins and Authorized redirect URIs
  • Click on Create
  • Click on Item Catalog from the credentials list
  • Download the credentials as JSON by clicking Download JSON
  • Rename the credentials JSON to client_secret.json
  • Put it in the project directory
  • There you go

Getting Started

  • Install Vagrant and Virtual Box
  • Clone the fullstack-nanodegree-vm
  • Launch the Vagrant VM by vagrant up
  • Open the Vagrant SSH by vagrant ssh
  • In the terminal write cd /vagrant/catalog
  • Initialize a local git by git init
  • Add a remote to this repoistory by git remote add origin https://github.com/iHDeveloper/ItemCatalog
  • Pull from that remote from branch master by git pull origin master
  • Checkout How to make Google OAuth2 Provider
  • Setup the database using python database.py
  • Feed this database with some data python seeder.py ( optional )
  • Run the application python application.py
  • Enjoy using the app :)

JSON API

GET: /catalogs.json

Returns the list of the catalogs and latest items


GET: /catalog/<catalog_name>/items.json

Return all the items of the selected catalog Paramters:

  • catalog_name - The name of the catalog

GET: /catalog/<catalog_name>/<item_name>.json

Returns the description of the item

Paramters:

  • catalog_name - The name of the catalog
  • item_name - The name of the item

itemcatalog's People

Watchers

James Cloos avatar iHDeveloper 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.