WORK IN PROGRESS
A scaffold for microservices using Python and FastAPI. This project is intended to be used as a template for new projects.
- Docker
- Docker Compose
cp .env.example .env
docker-compose up --build
- Python 3.10+
- Pip + virtualenv
python3 -m venv venv
source venv/bin/activate
pip install pip-tools
pip-compile requirements.in
pip install -r requirements.txt
fastapi dev main.py
fastapi run --host 0.0.0.0 --port 8000
pytest
pytest -vv --cov=. --cov=src --cov-report=term-missing --cov-report=xml .