- Python 3.9
- Poetry
Install
pre-commit install
pre-commit install -t pre-push
Run locally
pre-commit run --all-files
Using alembic
alembic init migrations
Create script
alembic revision -m "SCRIPT DESCRIPTION"
Run tests using pytest
pytest tests/
docker build -t python-rest-api-example:0.1 .
docker run -p 5000:5000 --env-file .env python-rest-api-example:0.1
heroku container:push web -a <HEROKU-APP-NAME>
heroku container:release web -a <HEROKU-APP-NAME>