gitmyhub

full-stack-fastapi-template

TypeScript ★ 44k updated 1d ago

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.

A production-ready starter template for full-stack web apps with FastAPI backend, React frontend, PostgreSQL database, authentication, and Docker, skip months of boilerplate setup.

PythonFastAPISQLModelPostgreSQLReactTypeScriptViteDockersetup: moderatecomplexity 3/5

The Full Stack FastAPI Template is a production-ready project starter for building modern web applications. It bundles a carefully chosen set of best-practice technologies into a working skeleton so you can go from zero to a deployed application with authentication, a database, a frontend, and CI/CD already configured rather than assembling the pieces yourself.

On the backend, the template uses FastAPI with Python and SQLModel for database interaction, backed by PostgreSQL. It ships with JWT-based authentication already wired up, so you get login, registration, and token refresh out of the box. The frontend is built with React and Vite using TypeScript, styled with Tailwind CSS, and the API client is generated automatically from the FastAPI OpenAPI spec, keeping the frontend types in sync with the backend without manual maintenance. The entire stack runs in Docker and Docker Compose, making local development and production deployment consistent. A GitHub Actions workflow handles continuous integration.

You would use this template when starting a new SaaS product, internal tool, or web application and you want to skip the boilerplate setup phase entirely. It makes the most sense when you need a full-stack system with user accounts and a relational database rather than a static site or a purely API-driven product. Teams that are comfortable with Python on the backend and React on the frontend will find the conventions familiar and the structure easy to extend.

The primary language in the repository is TypeScript for the frontend layer, with Python for the backend. Maintenance and development of the template is led by the FastAPI project itself.

Where it fits