An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Full Stack FastAPI Template

[![Test Docker Compose](../../actions/workflows/test-docker-compose.yml/badge.svg)](../../actions/workflows/test-docker-compose.yml)
[![Test Backend](../../actions/workflows/test-backend.yml/badge.svg)](../../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 login screenshot](img/login.png)

### Dashboard - Admin

![Admin dashboard screenshot](img/dashboard.png)

### Dashboard - Items

![Items dashboard screenshot](img/dashboard-items.png)

### Dashboard - Dark Mode

![Dark mode dashboard screenshot](img/dashboard-dark.png)

### React Email Templates

![Email templates screenshot](img/react-email.png)

### Mailpit - Local Email Testing

![Mailpit screenshot](img/mailpit.png)

### Interactive API Documentation

![API docs](img/docs.png)

## 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.