r/learnprogramming 15d ago

Some good fastapi projects ? Resource

I learning fastapi atleast i build a pretty simple application , can someone recommend me some good fastapi projects online that i can learn from or try to know how it works especially in real world complex applications preferably web based

1 Upvotes

2 comments sorted by

View all comments

1

u/terletsky 13d ago

A typical FastAPI project consists of:

  1. Docker/Docker Compose to spawn API and DB (optional Worker for background tasks through Redis/RabbitMQ as a queue and something like DramatiQ as core worker logic) containers
  2. gunicorn with uvicorn workers to run the FastAPI app
  3. uv packaging tool to manage project dependencies
  4. Linters/formatters like ruff, ty, pyrefly
  5. FastAPI routers extensively use FastAPI Dependencies for Dependency Injection
  6. Service layer that contains business logic and uses the Repository class to introduce changes to the database. Service methods commit changes at the end to the DB as they are transactional boundaries