← All open source projects

Full Stack FastAPI Template

fastapi/full-stack-fastapi-template

Full Stack FastAPI Template is an application template with FastAPI, SQLModel, PostgreSQL, React, TypeScript, Docker, and GitHub Actions.

Forks 8,717
Author fastapi
Language TypeScript
License MIT
Synced 2026-06-27

What it is

Full Stack FastAPI Template is a full application template where a FastAPI server is connected with a React interface, PostgreSQL, and development infrastructure.

The project appeared from a common need: FastAPI gives a strong API layer, but a real product also needs a database, authentication, admin screens, interface build, and checks.

The template’s main task is to provide a starting structure that can be copied and developed as an application base instead of assembling every layer from scratch.

What is inside

Inside are FastAPI, SQLModel, Pydantic, PostgreSQL, React, TypeScript, Vite, Docker, GitHub Actions, automatic HTTPS, and interactive API documentation.

The project shows dashboard login, admin screen, items screen, dark mode, and API documentation. It is not an empty skeleton, but an example with working user flows.

How people use it

Teams usually use the template to start a SaaS product, internal tool, or admin application that needs users, data, and management screens.

For a team, it is useful as a way to agree on initial structure: models, API routes, migrations, components, and checks have visible places.

Example

Running the template locally

This example shows the typical start: Docker Compose brings up the API, database, and interface.

Language: Bash
git clone https://github.com/fastapi/full-stack-fastapi-template app
cd app
docker compose up --build

Strengths

The project’s strength is the practical technology combination. FastAPI and SQLModel create a typed Python layer, React and TypeScript cover the client, and Docker makes the environment repeatable.

Another advantage is ready engineering detail. Authentication, CI, containers, and API docs appear early instead of becoming postponed debt.

Limitations

The limitation is that a template should not become dogma. A real product still needs domain model changes, access rights, design, and operation rules.

Demo elements should also be removed, otherwise the new project inherits foreign names and unnecessary screens.

Who it fits

Full Stack FastAPI Template fits teams that have chosen FastAPI and want a reasonable starting frame quickly.

For a tiny API without an interface, the template may be too large, but for a product with users and an admin area it saves a lot of initial work.

In the catalog, the project matters as a modern template where the value is not one library, but a well-assembled set of layers.

A practical start is to create a private copy, run it locally, replace the domain model, and check immediately which parts are actually needed.

Another practical value of the template is that it shows how to connect technical layers into one product loop. API, database, interface, authentication, and checks are not separate notes; they are already joined in a working example.