Skip to content

A project for the full stack nano degree in Udacity

Notifications You must be signed in to change notification settings

iHDeveloper/ItemCatalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A project for the full stack nano degree in Udacity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published