finds.dev← search

// the find

Buuntu/fastapi-react

★ 2,587 · Python · MIT · updated Oct 2023

🚀 Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker

A cookiecutter template that scaffolds a FastAPI + React full-stack app with PostgreSQL, JWT auth, Celery background tasks, and a react-admin dashboard — all wired together via Docker Compose. It's aimed at developers who want a working multi-service skeleton without building the plumbing from scratch. Last meaningful commit was October 2023, so the dependency versions are aging.

The Pytest setup is thoughtful — transaction rollbacks per test against a real test DB is the right approach, not mocking. Celery and Redis are included and pre-configured, not just mentioned in a README as 'left as an exercise.' The JWT auth flows end-to-end through both the FastAPI backend and the react-admin dashboard using the same token, which is a common pain point handled correctly. Directory structure is clean and the separation between admin and regular frontend is sensible.

JWT stored in localStorage is called out in the README itself as a known issue but left unfixed — that's a XSS risk that anyone building something real will need to address immediately. The stack is pinned to Python 3.8 and react-router v5, both well past their prime; adopting this today means your first task is a dependency upgrade sprint. No production docker-compose or environment separation — the same compose file serves dev and the deployment docs just wave at DockerSwarm.rocks. SQLAlchemy is used without async support, which means sync DB calls blocking FastAPI's event loop under any real load.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →