An application that shows your items in catalog to everyone.
- Open Google OAuth2 Provider
- Go to
Credentials
- Click on
Create credentials
and chooseOAuth Client ID
- Choose
Web Application
- Set the name
Item Catalog
- Add
http://localhost:8000
in 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
- 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
bygit 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 :)
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