An AI-assisted novel writing app that helps authors generate outlines, characters, worldbuilding and chapters, self-hosted with FastAPI, React and PostgreSQL.
fastapi/full-stack-fastapi-template
A full-stack web app template combining a FastAPI backend, React frontend, PostgreSQL database and Docker Compose setup.
- Stars
- 46,051
- Forks
- 9,153
- Open issues
- 12
- Last commit
- 6 days ago
What is it?
This template gives you a starting point for a full-stack web application. The backend is built with FastAPI, uses SQLModel for database access against PostgreSQL, and relies on Pydantic for validation. The frontend is a React app built with TypeScript and Vite, styled with Tailwind CSS and shadcn/ui components, and served by FastAPI on the same domain as the API.
Out of the box it includes JWT authentication, secure password hashing, email-based password recovery with React Email templates, and a Mailpit setup for testing email locally. Docker Compose runs the local services, and Traefik provides a reverse proxy with automatic HTTPS for self-hosted deployment. Pytest covers the backend, Playwright covers end-to-end tests, and GitHub Actions handles CI and CD.
You start by creating a new repository from the template. Deployment guides exist for FastAPI Cloud and for self-hosting with Docker Compose.
Key features
- 01FastAPI backend with SQLModel ORM on PostgreSQL
- 02React and TypeScript frontend built with Vite, Tailwind CSS and shadcn/ui
- 03JWT authentication and secure password hashing
- 04Email-based password recovery with React Email templates
- 05Docker Compose setup with Traefik for automatic HTTPS
- 06Pytest backend tests, Playwright end-to-end tests and GitHub Actions CI/CD
Use cases
- Starting a new web app that needs a Python API and a React dashboard
- Building an admin panel with user login and CRUD pages
- Self-hosting a web application with Docker Compose and HTTPS
- Deploying a FastAPI project to FastAPI Cloud
Quick start
- 1
Create a new repository from this template using the Use this template button
- 2
Read the development guide for the local workflow and Docker Compose setup
Things to know
- Requires Docker and Docker Compose for the standard local setup, as described in the development docs.
Topics
FAQ
- What is full-stack-fastapi-template?
- A full-stack web app template combining a FastAPI backend, React frontend, PostgreSQL database and Docker Compose setup. This template gives you a starting point for a full-stack web application. The backend is built with FastAPI, uses SQLModel for database access against PostgreSQL, and relies on Pydantic for validation. The frontend is a React app built with TypeScript and Vite, styled with Tailwind CSS and shadcn/ui components, and served by FastAPI on the same domain as the API.
- Is full-stack-fastapi-template free to use? What license does it have?
- full-stack-fastapi-template is open source under the MIT license. Check the license terms before using it in commercial products.
- Is full-stack-fastapi-template still maintained?
- Actively maintained. The last commit to full-stack-fastapi-template was on Oct 15, 2026.
- What can I use full-stack-fastapi-template for?
- Starting a new web app that needs a Python API and a React dashboard Building an admin panel with user login and CRUD pages Self-hosting a web application with Docker Compose and HTTPS Deploying a FastAPI project to FastAPI Cloud
- How do I install full-stack-fastapi-template?
- Create a new repository from this template using the Use this template button Read the development guide for the local workflow and Docker Compose setup
- Where can I get full-stack-fastapi-template?
- The source code and installation instructions are on GitHub: https://github.com/fastapi/full-stack-fastapi-template
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A free, MIT-licensed full-stack SaaS starter built on React, Node.js, Prisma and the Wasp framework, with auth, payments and email included.
Open-source project management tool for tracking issues, cycles, modules, and product roadmaps, self-hostable via Docker or Kubernetes.
Free, open source Splitwise alternative for sharing group expenses and tracking balances with friends and family.
Open-source AI education platform that turns study materials into quizzes, flashcards, Cornell-style notes, and podcasts, inspired by NotebookLM.
Web app for running DeepSeek-OCR on images and PDFs, with a React frontend, FastAPI backend and Docker setup.