AY2018/2019 Sem 1 - CS2102 Project This is based on topic C, Stuff Sharing.
pip install -r requirements.txt
.
- Setup postgresql from the official documentation under chapter 16/17.
- Setup your
.pgpass
file for secure storage of password and port as explained here or this SO post for Linux/Mac. - Create a file called
conn.txt
which contains the connection string for thepsycopg2
library to connect to a postgresql server. This file will contain the parameters for the connection string. For example,host='localhost' dbname='mydbname' user='myusername'
.
- Fork and then clone the repo.
- Install the dependencies.
- Setup the database configurations for postgresql.
- The required configurations have been set in
.flaskenv
so run the app usingflask run
. The app will be hosted onhttp://127.0.0.1:5000/
by default.