Skip to content

Dockerized web application on Starlite, SQLAlchemy1.4, PostgreSQL

License

Notifications You must be signed in to change notification settings

PywatchS/starlite-sqlalchemy-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async template on Starlite and SQLAlchemy 1.4

GitHub issues GitHub forks GitHub stars GitHub license

Description

Production-ready dockerized async REST API on Starlite with SQLAlchemy and PostgreSQL

Key Features

  • tests on pytest with 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, isort and black
  • Alembic for 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

About

Dockerized web application on Starlite, SQLAlchemy1.4, PostgreSQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.5%
  • Makefile 6.0%
  • Shell 2.5%
  • Dockerfile 1.5%
  • Mako 1.5%