The Item Catalog is a shopping catalog that utilizes a python server as well as an sqlite database to track items.
Download all the files from the github page https://github.com/zlav/ItemCatalog.git. Ensure all neccesary packages are installed as well:
- flask
- sqlalchemy
- sqlite
- oauth2client
Using a Vagrant virtual machine is recomended however it is not neccesary.
-
Start a UNIX terminal and navigate to the folder containing the package items.
-
Create the Database
- Run
python database_setup.py
to initialize the database. - (Optional) Run
python database_load
to place a custom set of data into the database.
- Run
-
Start the server
- Navigate to the folder containing all three files inside of the terminal and enter
python project.py
- Default port # is 5000
- Navigate to the folder containing all three files inside of the terminal and enter
-
Wokring with the Catalog
- Navigate to localhost:5000 to access the catalog
- Login with Facebook or Google using the link on the upper right of the page
- Once logged in you can add categories and items as well as edit them
- Only items that you added may be edited
(Both of these options were tested on macOS HighSierra 10.13)
- Fails to start - Check that all of the neccesary packages are installed.
- Fails when loading a page - Inspect the debugging page and report the problem.
- Fails to load after running the server.
- Ensure you are logging onto the correct port.
- Check the server debugging information.
- Data storage issues
- Database may not have been initialized. Run database_setup.py
- Shopping cart functionality
- Native login authorization support
- Images for categories and items
GPL