Async template on Starlite and SQLAlchemy 1.4
Description
Production-ready dockerized async REST API on Starlite with SQLAlchemy and PostgreSQL
Key Features
- tests on
pytestwith automatic rollback after each test case - db session stored in Python's
context variable - separate requirements files for dev and production using
pip-tools - configs for
mypy,pylint,isortandblack Alembicfor DB migrations- CI with Github
After git clone run
make help
Prepare virtual environment
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install pip-tools