FastAPI & PostgreSQL starter kit with Docker. Revamped backend template for modern needs.
FastAPI & PostgreSQL starter kit with Docker. Revamped backend template for modern needs.
Hello there, coding wanderer! If you're here, you probably love FastAPI, enjoy PostgreSQL, and adore backends. Oh, and did I mention? We're now sailing smoothly with Docker! No more environment discrepancies, just pure coding bliss.
Because the backend is where the real action happens! It's like the backstage of a rock concert - not visible to all, but without it, the show won't go on!
I took the majestic backend of the original full-stack-fastapi-postgresql project, dusted off the cobwebs, replaced the rusty bolts, and added a sprinkle of Docker goodness! A modernized, faster, and improved version now awaits you.
To set this baby up:
If you don't have one yet, set up a .env file with your configuration. For a basic version for local testing use:
cp dot-env-template .envBe aware that .env is excluded from git because it contains secrets, API keys and so on. Never put your .env file into git.
Then build and start the test/debug stack with:
docker-compose up --buildThen:
docker exec fastapi-app bash ./test.sh [optional parameters]Did you find more ancient bugs lurking around? Or perhaps you unearthed a potential treasure in the form of a feature? Pull requests are more than welcome. After all, multiple minds make light work. Let's polish this backend to be more radiant than a starry night!
A grand salute to the maestro behind the original full-stack-fastapi-postgresql. Their innovative groundwork laid the foundation, allowing this revamped symphony to come to life.
Here's a nugget of wisdom: The frontend is your application's charming smile, but the backend? That's the beating heart and the brilliant mind! Nurture it, for a healthy heart and a sharp mind make dreams come alive.
No open issues yet, or sync has not completed.