/fastapi-tdd-docker

Text summarizer with FastAPI, Docker, PostgreSQL, Tortoise ORM and Pytest, applying TDD

Primary LanguagePython

Python FastAPI App

Continuous Integration and Delivery

Text summarizer app built with Python, FastAPI, Docker, PostgreSQL, Tortoise ORM, aerich and Pytest, applying TDD.

API routes:

api routes

API docs:

https://intense-plains-24487.herokuapp.com/docs

To run the containers:

$ docker-compose up -d

To apply database migrations:

$ docker-compose exec web aerich upgrade

Running tests:

$ docker-compose exec web python -m pytest

Running test's coverage:

$ docker-compose exec web python -m pytest --cov="."

Running linting:

$ docker-compose exec web flake8 .

Running formatting:

$ docker-compose exec web black .
$ docker-compose exec web isort .