Skip to content

An application that provides a list of items within a variety of categories as well as provide a user registration and authentication system. Registered users will have the ability to post, edit and delete their own items

Notifications You must be signed in to change notification settings

ajack13/item-catalog

Repository files navigation

Item catalog - [ajay]

An application that provides a list of items within a variety of categories as well as provide a user registration and authentication system. Registered users will have the ability to post, edit and delete their own items.

Pre-requisites

  1. Python

  2. Sqlite

  3. flask

    $ apt-get install python-flask
  1. pip
    $ apt-get install python-pip
  1. Sql alchemy
    $ apt-get install python-sqlalchemy
  1. oauth2client
    $ pip install oauth2client 
  1. httplib2
    $ pip install httplib2
  1. dicttoxml (python library)
    $ pip install dicttoxml

Required Libraries and dependencies

  1. Git (optional)

  2. A gmail or facebook id

Installation

download zip

Unzip the file

$ cd item-catalog

or

Clone github repository

Open the shell in mac/linux or command prompt in windows and navigate to the folder you wnat to clone the repository

Make sure you have installed git

	$ git clone https://github.com/ajack13/item-catalog.git

this should clone the repository to the folder

Folders and files


templates

This folder contains all the html templates of the app

static

This folder contsins css,js,images and cover-art of the items

core.py

Contains python defenitions for the following operations

  • Setting up server and run flask
  • Add/Delete/Edit category
  • Add/Delete/Edit items
  • JSON and XML endpoints
  • Oauth autherization and authentication for facebook and gmail

Other files

  • database_setup.py ( code to setup database )
  • sampleData.py ( code to add sample data to database)

Setup project


  1. Navigate to the project and create the database by running database_setup.py
    $ python database_setup.py
  1. Import sample data(optional)
    $ python sampleData.py 
  1. Start project by running core.py
    $ python core.py
  1. The app is configured to run on port 8000 on your browser
    http://localhost:8000/

Version

1.1

About

An application that provides a list of items within a variety of categories as well as provide a user registration and authentication system. Registered users will have the ability to post, edit and delete their own items

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published