- Setup virtual environment:
pip install virtualenv virtualenv venv source venv/bin/activate
- Install dependencies
pip install 'setuptools<58.0.0' pip install -r requirements.txt
- Create local database with PostgreSQL and set the following environment
variables:
DB_USER DB_PASSWORD DB_HOST DB_PORT DB_NAME
- Firstly, run migrations with alembic:
alembic upgrade head
- Then run web-server (configure the port if you need):
gunicorn --bind 0.0.0.0:8000 -w 1 -t 4 main:app