Skip to content

PranavDani/Expense-Tracker

Repository files navigation

Expense-Tracker

Run it locally (written for Windows and VSCode)

  1. Create a directory and clone the repo in it:
git clone https://github.com/Pranav1642/Expense-Tracker.git
  1. Create your virtual environment:
python -m venv env
  1. Activate your virtual environment:
env\Scripts\activate
  1. Install the dependencies:
pip install -r requirements.txt
  1. Create the DB in Postgres (Download it first) (schema in repo here)

  2. 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}
  1. Build and run the Flask app in VSCode