full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

fastapi-asyncpg-cookiecutter

Open idanfishman opened this issue 2 years ago • 0 comments

Hi @tiangolo,

I started working with FastAPI 4 months ago it has been so easy to learn, and easy and fun to use. As a senior python developer once I start a real project I'm looking for some inspiration from other projects layout. I have tried to find a project layout that meets the following requirements:

  • [x] Uses Async Database connection with SQLAlchemy as the main ORM.
  • [x] Uses Postgres as the Database.
  • [x] Has Support for Async Testing.
  • [x] Has a Production Ready Dockerfile, and Development-Testing Ready Docker Compose file.

Unfortunately I could not find a template that suits my needs, so I decided to create one. I have took some inspiration from this repository, and created what I call the fastapi-asyncpg-cookiecutter which is a simple project template a person may clone and use as the skeleton his async FastAPI project. The project template is Production Ready from day one, I'm using it to develop some micro-services with TDD approach thanks to the support for Async Testing, Async Connection to the Postgres database.

you can find here https://github.com/Idan-Fishman/fastapi-asyncpg-cookiecutter At this moment as the Async Support has become a core requirement of a project @tiangolo we should give the FastAPI users a great, production ready template to start with. I think it is about time to renew this repository full-stack-fastapi-postgresql with a fresh project template.

Tell me what you think :)

idanfishman avatar Sep 13 '22 07:09 idanfishman