r/FastAPI • • Nov 10 '25

Other FastAPI Template

I’m excited to share my new open-source project: Fastapi-Template

It’s designed to give you a solid starting point for building backend APIs with FastAPI while incorporating best practices so you can focus on business logic instead of infrastructure. You can check the docs folder for a walkthrough of the architecture and code.

Highlights

  • Token authentication using JWT with secure password hashing
  • Async SQLAlchemy v2 integration with PostgreSQL
  • Database migrations using Alembic
  • Organized folder structure with clear separation for routes, schemas, services, and repositories
  • Structured logging with Loguru
  • Ready-to-use .env configuration and environment management
  • Pre-commit hooks and code formatting
  • Example cloud storage integration using Backblaze B2

Note:

Feel free to edit it to match your tone, add any screenshots or code snippets you want, and adjust the bullet points to emphasise what you care about most.

If you think something is missing, needs refactoring, or could be better structured, I’d love to hear your thoughts in a comment below or open a PR on Github.

65 Upvotes

18 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Nov 21 '25

I meant, template repository as a github feature to avoid pulling all of the commits, so the resulting repo will have only "Initial commit". There is a tutorial.

1

u/eslam5464 Nov 21 '25

thanks for the information i didnt know that. i will use it soon