https://github.com/fastapi/full-stack-fastapi-template
Full-stack web application template with FastAPI, React, SQLModel, PostgreSQL, Vite, Tailwind CSS, shadcn/ui, FastAPI Cloud, and Docker Compose.
https://github.com/fastapi/full-stack-fastapi-template
docker docker-compose fastapi fastapi-cloud full-stack github-actions jwt openapi playwright postgresql pytest python react shadcn-ui sqlmodel tailwindcss tanstack-query tanstack-router typescript vite
Last synced: about 1 month ago
JSON representation
Full-stack web application template with FastAPI, React, SQLModel, PostgreSQL, Vite, Tailwind CSS, shadcn/ui, FastAPI Cloud, and Docker Compose.
- Host: GitHub
- URL: https://github.com/fastapi/full-stack-fastapi-template
- Owner: fastapi
- License: mit
- Created: 2019-02-23T15:08:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2026-10-08T15:50:30.000Z (about 2 months ago)
- Last Synced: 2026-10-14T03:08:05.476Z (about 1 month ago)
- Topics: docker, docker-compose, fastapi, fastapi-cloud, full-stack, github-actions, jwt, openapi, playwright, postgresql, pytest, python, react, shadcn-ui, sqlmodel, tailwindcss, tanstack-query, tanstack-router, typescript, vite
- Language: TypeScript
- Homepage:
- Size: 6.77 MB
- Stars: 45,973
- Watchers: 312
- Forks: 9,147
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-python - fastapi/full-stack-fastapi-template - Full-stack web application template with FastAPI, React, SQLModel, PostgreSQL, Vite, Tailwind CSS, shadcn/ui, FastAPI Cloud, and Docker Compose. (Learning and Reference / Examples and Exercises)
- awesome-typescript - fastapi/full-stack-fastapi-template - Full-stack web application template with FastAPI, React, SQLModel, PostgreSQL, Vite, Tailwind CSS, shadcn/ui, FastAPI Cloud, and Docker Compose. (Learning and Reference / Examples and Exercises)
- awesome-cookiecutters - full-stack-fastapi-template - Full-stack FastAPI and React application template with Docker and GitHub Actions. _45,878 stars | last commit 2026-10-03._ (Web Apps and APIs / GitHub Templates)
- stars - fastapi/full-stack-fastapi-template - Full-stack web application template with FastAPI, React, SQLModel, PostgreSQL, Vite, Tailwind CSS, shadcn/ui, FastAPI Cloud, and Docker Compose. (TypeScript)
- awesome-github-projects - full-stack-fastapi-template - Full-stack web application template with FastAPI, React, SQLModel, PostgreSQL, Vite, Tailwind CSS, shadcn/ui, FastAPI Cloud, and Docker Compose. β46,292 `TypeScript` π₯ (π Web Development - Frontend)
- awesome-data-analysis - Full Stack Fastapi Template - Full-stack template with FastAPI, React, and PostgreSQL. (π Additional Resources and Tools)
- github-ultimate-repos - fastapi/full-stack-fastapi-template - Β |Β β 46,066β Β |Β π΄ 9,168 Β |Β π» `TypeScript`π <https://github.com/fastapi/full-stack-fastapi-template>π Full-stack web application template with FastAPI, React, SQLModel, PostgreSQL, Vite, Tailwind CSS, shadcn/ui, FastAPI Cloud, and Docker Compose.βοΈ `Declarative YAML manifest -> etcd Raft consensus quorum -> controller-runtime reconciliation loop -> CRI container runtime & CNI network routing.` (π Master Categorized Repository Directory (100% Clickable Links) / [39] CLOUD-NATIVE INFRASTRUCTURE, KUBERNETES, CONTAINERS & SERVICE MESHES)
- jimsghstars - fastapi/full-stack-fastapi-template - Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more. (TypeScript)
- awesome-fastapi - Full Stack FastAPI and PostgreSQL - Base Project Generator - Full Stack FastAPI Template, which includes FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS, and more (developed by the creator of FastAPI, [SebastiΓ‘n RamΓrez](https://github.com/tiangolo)). (Projects / Boilerplate)
- awesome-hacking-lists - fastapi/full-stack-fastapi-template - Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more. (TypeScript)
README
# Full Stack FastAPI Template
[](../../actions/workflows/test-docker-compose.yml)
[](../../actions/workflows/test-backend.yml)
## Technology Stack and Features
- β‘ [**FastAPI**](https://fastapi.tiangolo.com) for the Python backend API.
- π§° [SQLModel](https://sqlmodel.tiangolo.com) for the Python SQL database interactions (ORM).
- π [Pydantic](https://docs.pydantic.dev), used by FastAPI, for the data validation and settings management.
- πΎ [PostgreSQL](https://www.postgresql.org) as the SQL database.
- π [React](https://react.dev) for the frontend.
- π§© Built into the backend application and served by FastAPI on the same domain as the API.
- π Using TypeScript, hooks, [Vite](https://vitejs.dev), and other parts of a modern frontend stack.
- π¨ [Tailwind CSS](https://tailwindcss.com) and [shadcn/ui](https://ui.shadcn.com) for the frontend components.
- π€ An automatically generated frontend client.
- π§ͺ [Playwright](https://playwright.dev) for end-to-end testing.
- π¦ Dark mode support.
- βοΈ [FastAPI Cloud](https://fastapicloud.com) for deployment.
- π [Docker Compose](https://www.docker.com) for local services and self-hosted deployment.
- π [Traefik](https://traefik.io) as a reverse proxy with automatic HTTPS.
- π Secure password hashing by default.
- π JWT (JSON Web Token) authentication.
- π« Email-based password recovery.
- βοΈ [React Email](https://react.email) for email templates.
- π¬ [Mailpit](https://mailpit.axllent.org) for local email testing during development.
- β
Tests with [Pytest](https://pytest.org).
- π CI (continuous integration) and CD (continuous deployment) based on GitHub Actions.
### Dashboard Login

### Dashboard - Admin

### Dashboard - Items

### Dashboard - Dark Mode

### React Email Templates

### Mailpit - Local Email Testing

### Interactive API Documentation

## How to Use It
Click the **Use this template** button at the top of this page to create a new repository.
## Backend Development
Backend docs: [backend/README.md](./backend/README.md).
## Frontend Development
Frontend docs: [frontend/README.md](./frontend/README.md).
## Deployment
FastAPI Cloud deployment: [deployment.md](./deployment.md).
Self-hosted deployment with Docker Compose: [deployment-docker-compose.md](./deployment-docker-compose.md).
## Development
General development docs: [development.md](./development.md).
This includes the local FastAPI and Vite workflow, Docker Compose services, `.env` configuration, and more.
## Release Notes
Check the file [release-notes.md](./release-notes.md).
## License
The Full Stack FastAPI Template is licensed under the terms of the MIT license.