Skip to content

Horiol/fastapi-blueprint

Repository files navigation

fastapi-blueprint

Setup the environment

Requirements

  • Poetry

Installing dependencies

poetry install
poetry run pre-commit install

Run in development

poetry run uvicorn src.main:app --reload

Execute test suite

poetry run pytest --cov=src --cov-context=test --cov-branch --cov-report xml --cov-report term

Execute as docker compose

docker compose build
docker compose up

Using this commands you will start multiple docker containers and will serve the API at port 8080 and the flower (celery monitoring page) at port 5555

Migrations

Create a new migration

poetry run alembic revision --autogenerate -m "message"

Apply migrations

poetry run alembic upgrade head

Features to be included

  • Docker compose structure
  • Poetry
  • REST API
  • DB connection
  • Alembic migrations
  • GraphQL API
  • Celery async tasks
  • Admin interface
  • Tests
  • Coverage
  • Caching
  • Logging
  • Monitoring
  • Error handling
  • Rate limiting
  • Email sending

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5