Main technologies
- FastAPI
- TortoiseORM and Aerich as a database migrations tool
ENVIRONMENT VARIABLES:
Create file .env
with following environmental variables:
Postgres Configs:
- DB_USER
- DB_PASS
- DB_HOST
- DB_NAME
JWT Auth Configs:
- JWT_SECRET
- ACCESS_TOKEN_EXP_MINUTES
- REFRESH_TOKEN_EXP_HOURS
Email Configs:
- EMAIL_HOST_USER
- EMAIL_HOST_PASSWORD
Start project
Install dependencies:
poetry install
Migrate database:
aerich upgrade
Run project:
python run.py