- Create a directory and clone the repo in it:
git clone https://github.com/Pranav1642/Expense-Tracker.git
- Create your virtual environment:
python -m venv env
- Activate your virtual environment:
env\Scripts\activate
- Install the dependencies:
pip install -r requirements.txt
-
Create the DB in Postgres (Download it first) (schema in repo here)
-
Set your environment variables in .env file (otherwise hard code (not a good practice) the string
engine
in app.py in all of the.py
files):
# DB variable
DATABASE_LINK=postgres://{user}:{password}@{hostname}:{port}/{database-name}
- Build and run the Flask app in VSCode