Learn how to build, test, and deploy a text summarization microservice with Python, FastAPI, and Docker
fastapi-tdd-docker is a code-along (with minor differences) to the course Test-Driven Development with FastAPI and Docker by Michael Herman.
- Docker & Docker Compose
- FastAPI
- Python 3.8+
- Docker
- Docker Compose
$ git clone https://github.com/imtanmoy/fastapi-tdd-docker.git && cd fastapi-tdd-docker$ docker-compose up -d --build$ docker-compose exec web python app/db.py$ docker-compose up -dGo to http://localhost:8002/docs.
$ docker-compose exec web python -m pytestUnit Tests with Monkey-patching:
$ docker-compose exec web pytest -k "unit" -n autoPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please see the original repo for details.