Harshini Ramanujam - hr2358
Donghan Kim - dk3245
- Set up virtual env
python3 -m venv env - Source the env
source env/bin/activate - Install dependencies
pip install -r requirements.txt - Set environment variables for DB_USER, DB_PASSWORD, DB_SERVER
- Run server on local
python run.py
Fixes for later reference:
- Ran
sudo apt-get install libpq-devto install psycopg2 on google cloud's VM
If you want to use .env file to store environment variables here is what you can do:
# navigate to project directory
cd/lionnetwork
# create .env file and enter your DB user name, password, and server link
vim .env
# extract environment variable's in db.py
from decouple import config
...
DB_USER = config('DB_USER')
DB_PASSWORD = config('DB_PASSWORD')
DB_SERVER = config('DB_SERVER')