Skip to content

In this project, you'll work with authentication, APIs and Basic CRUD operation with Flask framework

Notifications You must be signed in to change notification settings

koshish/udacity_04_catalog_item_application

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catalog-Item-Application

Project Overview

In this project, you'll work with authentication, APIs and Basic CRUD operation with Flask framework.

Basic Functionality

  1. Login and Register
  2. Login with Google
  3. Add, Update, Delete Catalog (Authentication required)
  4. Add, Update, Delete Items in Particular Catalog(Authentication required)
  5. APIs for Add, Update, Delete Catalog with token based authentication

How to Run?

PreRequisites:

Setup Project:

  1. Install Vagrant and VirtualBox
  2. Download or Clone fullstack-nanodegree-vm repository.
  3. Go to Catalog folder and put your project inside it.

Requirements:

  1. Install request auth library:
  $ pip install requests requests_oauthlib

Launching the Virtual Machine:

  1. Launch the Vagrant VM inside Vagrant sub-directory in the downloaded fullstack-nanodegree-vm repository using command:
  $ vagrant up
  1. Then Log into this using command:
  $ vagrant ssh

Run project

  1. From the vagrant directory inside the virtual machine,run application.py using: python application.py

APIs Usage

  1. Get All Catalogs : http://localhost:5000/api/catalog/
  2. Get particular Catalog : http://localhost:5000/api/catalog/<catalog_id>/
  3. Get particular Item : http://localhost:5000/api/item/<item_id>/
  4. Create Catalog : http://localhost:5000/api/catalog/new/ (Headers : authentication_token, Params : catalog_name)
  5. Update Catalog : http://localhost:5000/api/catalog/edit/ (Headers : authentication_token, Params : Params : catalog_id,catalog_name)
  6. Delete Catalog : http://localhost:5000/api/catalog/delete/ (Headers : authentication_token, Params : Params : catalog_id)
  7. Get All items for Catalog : http://localhost:5000/api/catalog/items/ (Headers : authentication_token, Params : Params : catalog_id,catalog_name)

Migration:

  1. pip install Flask-Migrate
  2. export FLASK_APP="path to your application.py"
  3. flask db init
  4. flask db migrate
  5. flask db upgrade

About

In this project, you'll work with authentication, APIs and Basic CRUD operation with Flask framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 60.3%
  • HTML 37.9%
  • Mako 1.2%
  • CSS 0.6%