denmarksdev / catalog

The application has a list of items within a variety of categories, as well as a user registration and authentication system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catalog App

The application has a list of items within a variety of categories, as well as a user registration and authentication system. The user can include, update and delete their own items.

Requirements

  1. Require Python 2.7
  2. To use the third-party authentication system, you must have the following developer accounts:

Usage

  1. Clone or download this repository

  2. Install all dependencies with the following command pip install -r requirements.txt

  3. Download Google JSON file and save the file as secrets_google.json into the root folder.

  4. In the secrets_facebook.json replace app_id and app_secret your own credentials app.

  5. Run app with follow command python run.py

API JSON

Samples:

http://localhost:8080/api/v1/catalog.json/{item_title}

Return Catalog Item by Title

{
  "Item": {
    "category_id": 1, 
    "description": "The ball used in the sport of association football. The name ...", 
    "id": 2, 
    "image": "http://localhost:8080/static/images/2.jpg", 
    "title": "Soccer Ball"
  }
}

http://localhost:8080/api/v1/catalog.json

Returns all categories and their respective Catalog Items.

{
  "Category": [
    {
      "id": 1, 
      "item": [
        {
          "category_id": 1, 
          "description": "The ball used in the sport of association football ..." 
          "id": 2, 
          "image": "http://localhost:8080/static/images/2.jpg", 
          "title": "Soccer Ball"
        }
      ], 
      "name": "Soccer"
    }, 
    {
      "id": 4, 
      "item": [
        {
          "category_id": 4, 
          "description": "An object used for one of the greatest sports ever...", 
          "id": 1, 
          "image": "http://localhost:8080/static/images/1.png", 
          "title": "Snowboard"
        }
      ], 
      "name": "Snowboarding"
    }, 
    {
      "id": 5, 
      "item": [], 
      "name": "Rock Climbing"
    } 
  ]
}

Screenshots

Catalog

Catalog Item Details

Catalog in Mobile

If I have seen further ...

... it is by standing on the shoulders of Giants (Isaac Newton)

Here are some sources that contribute to a project construction

About

The application has a list of items within a variety of categories, as well as a user registration and authentication system.

License:GNU General Public License v3.0


Languages

Language:Python 66.1%Language:HTML 25.7%Language:CSS 8.1%