Catalog Management
Table of Contents
Background
A very simple catalog management app, demonstrating basic CRUD operations using Flask, SQLAlchemy, Postgresql. It users Materialize for front-end styling.The files in this repository provide a few basic back-end functions to run a swiss pairing tournament, using postgresql db and python.
Note: You may want to install Vagrant and Virtual-Box for running some of these files.
Author
Frameworks and tools used
- Materialize - for front-end styling
- SQLAlchemy - connects and interacts with database using ORM
- Postgresql - Database system
- Flask - Python web developement framework
How to Use
- Download all the files in the same folder, say 'catalog'.
- On your terminal, change the path to the catalog folder and do the following to setup your database:
$ vagrant up
(pg_config.sh file contains installation script for all the required packages to run this project.)$ vagrant ssh
- Change the path to the ItemsCatalog directory
$ python database_setup.py
$ python catalog.py
- To view the db schema, run
$ psql catalog
Source Files
- database_setup.py : Creates the postgresql database
- catalog.py : Contains necessary handlers for all CRUD operations and app navigations.
- pg_config.sh : Contains scripts to install and setup necessary packages to get the app running.