KalleChen / FinBuddy

MIT License
0 stars 0 forks source link

FinBuddy

Environment setup

backend

python virtual environment

This is recommended but not necessary:

# Create a virtual python environment
# Make suer you have installed virtualenv correctly
python -m venv .venv
# Activate the virtual environment
source .venv/bin/activate
# you can check if it works correctly by running:
where python
# If it turns out to be ${pwd}/.venv/bin/python
# that means you activate the enviornment successfully!

# deactivate the virtual environment by running:
deactivate

Install dependencies

pip install -r backend/requirements.txt

Setup environment variable

touch .env
# COPY PAST from .env.example file
# Ask for some variables

Setup pre-commit

pre-commit install # first use
pre-commit install --overwrite

Start docker services

docker compose build
docker compose up -d

Linter & Formatter

We use pre-commit library to check each commit, please make sure your pre-commit can work after environment setup

You can test if the pre-commit works correctly by running pre-commit command manually:

pre-commit run

backend