- Python 3.12.x
- Poetry 1.8.x
- Terraform
- FastApi
- Uvicorn
- pytest
- pre-commit
- ruff
poetry install
Create terraform configurations in infra/live
(a folder per stage, e.g. dev
, staging
, prod
).
Create file terraform.tfvars
(duplicate terraform.tfvars.example
).
Configure terraform state (S3 backend) in infra/live/[stage]/config.tf
pre-commit install
Format terraform files
make terraform-format
Init terraform
make terraform-init
Apply terraform
make terraform-apply
Start local server
make start-local
Lint
make lint
Lint and fix
make lint-fix
Format
make format
Launch tests
make test
Launch test with coverage
make coverage
Run pre-commit hooks
make pre-commit