case141 / CS2102-Project

AY2018/2019 Sem 1 - CS2102 Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CS2102-Project

AY2018/2019 Sem 1 - CS2102 Project This is based on topic C, Stuff Sharing.

Installing dependencies

pip install -r requirements.txt.

Setting up postgresql

  1. Setup postgresql from the official documentation under chapter 16/17.
  2. Setup your .pgpass file for secure storage of password and port as explained here or this SO post for Linux/Mac.
  3. Create a file called conn.txt which contains the connection string for the psycopg2 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'.

Running the app

  1. Fork and then clone the repo.
  2. Install the dependencies.
  3. Setup the database configurations for postgresql.
  4. The required configurations have been set in .flaskenv so run the app using flask run. The app will be hosted on http://127.0.0.1:5000/ by default.

About

AY2018/2019 Sem 1 - CS2102 Project


Languages

Language:Python 63.0%Language:HTML 31.9%Language:PLpgSQL 4.5%Language:CSS 0.6%