You need a configuration file named database.ini
to store all connection parameters.
The following shows the contents of the database.ini
file:
[postgresql]
host=localhost
database=databasename
user=username
password=userpassword
Change database
, user
, password
values to your local postgresql configurations. Notice that you need to add the database.ini
to the .gitignore
file to not committing the sensitive information to the public.
PostgreSQL
needs to be installed and running, database.ini
with correct credentials created in the root directory.
Run the following commands on terminal:
git clone https://github.gatech.edu/cs6400-2021-01-spring/cs6400-2021-01-Team054.git
cd cs6400-2021-01-Team054
pip install -r requirements.txt
psql -f SchemaAndDemoData.sql
python3 app.py
- Python>=3.7.9
- Flask==1.1.2
- psycopg2==2.7.7
- Flask-WTF==0.14.3
- Flask-Bootstrap4==4.0.2
- WTForms==2.3.3
- PostgreSQL>=12.1
- tablefunc module installed for PostgreSQL to make pivot table:
CREATE EXTENSION IF NOT EXISTS tablefunc;