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
- Python 2.7 or above
- Flask
- sqlalchemy
- oauth2client
- Git
- Terminal or command prompt
Open up your terminal or command prompt and enter the following command to download
- $ git clone git@github.com:AungThiha/catalog.git
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.
- 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
- 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
Open up your terminal or command prompt and run the command below:
- $ python application.py
- get data in json
{base_url}/catalog.json
- get data in xml
{base_url}/catalog.xml