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
pip install -r backend/requirements.txt
pre-commit install # first use
pre-commit install --overwrite
copy .default.env .env
docker compose up -d
docker compose -f docker-compose.prod.yml build
docker compose -f docker-compose.prod.yml up -d
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
- linter: flake8
- formatter: black
use JWT token
put the below in header to get authed
{
"Authorization": "JWT ${token}"
}