Skip to content

AungThiha/catalog

Repository files navigation

catalog

Full-Stack Web Nanodegree ( Project 3 )

The project is a catalog app with dummy data.
The project consists of:

  • Setting up database
  • CRUD operation
  • Showing Flash Messages
  • Implementing API end points
  • Styling and improving user experience
  • Authentication and authorization

The app is deployed on heroku

Requirements

  • Python 2.7 or above
  • Flask
  • sqlalchemy
  • oauth2client
  • Git
  • Terminal or command prompt

How to download

Open up your terminal or command prompt and enter the following command to download

How To create database and add dummy data

Make sure the current directly is where all the codes downloaded under.
In your terminal or command prompt, run the following command

  • $ python catalog_data.py

You will see a sqlite database file named "catalog.db" is created.

How To setup gplus client id and other necessary stuffs

  • Follow this tutorial first
  • In google developer console, open left navigation drawer
  • API Manager -> Credential -> Click your created credential -> Click download json
  • make sure redirect_uris and javascript_origins in downloaded json are not empty. if it's empty, go back and figure out what's wrong
  • replace content of client_secrets.json with the content of downloaded json

How To setup fb app id and other neccessary stuffs

  • Follow this tutorial (two final steps are not necessary)
  • replace some placeholder text from fb_client_secrets.json with appropriate values obtained from created fb app

How To run the application

Open up your terminal or command prompt and run the command below:

  • $ python application.py

API end points

  • get data in json

{base_url}/catalog.json

  • get data in xml

{base_url}/catalog.xml

About

Full-Stack Web Nanodegree ( Project 3 )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published