Fastapi React Boilerplate

screenshot of Fastapi React Boilerplate
react

Minimal boilerplate of FastAPI backend, React frontend and SQLAlchemy setup organized within docker-compose for convenient local development and deployment.

Overview

If you're looking for a streamlined setup to jumpstart your web application development, this FastAPI + React boilerplate could be the perfect solution. It combines a FastAPI backend with a React frontend, all packaged neatly within Docker for seamless local development and deployment. Designed with minimalism in mind, it strips away the complexities found in larger projects and focuses on providing a straightforward foundation that's easy to understand and adapt.

This boilerplate is especially beneficial for developers who want flexibility and control. It includes essential tools I've frequently found myself needing, while eliminating unnecessary features. Whether you're a seasoned pro or just getting started, this setup serves as a solid starting point to kick off your next project.

Features

  • FastAPI-users Integration: Comes equipped with basic 'Items' objects and features from the FastAPI-users library, allowing for rapid development of user management functionalities.
  • React ProtectedRoutes Setup: Simplifies managing user access to different pages within your application, ensuring proper authentication flows.
  • Traefik + Let's Encrypt: Integrates a reliable reverse proxy and SSL certification functionality, ensuring secure connections for both development and production environments.
  • Easy Environment Configuration: Simple .env/.env.dev structure to quickly adjust database connections and environment variables as needed.
  • Docker Compose Setup: Streamlined commands for both development and production environments make deployment a breeze without the hassle of complicated configurations.
  • Flexible Frontend Structure: Designed for compatibility with Docker Desktop on Windows, while still allowing for easy reorganization based on personal preferences.
  • Community Contributions Welcome: The project encourages contributions, particularly from those with frontend design skills to enhance its aesthetic appeal.
react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

docker
Docker

A website that uses Docker for containerization to streamline development, testing, and deployment workflows. This includes features such as containerization of dependencies, automated builds and deployments, and container orchestration to ensure scalability and availability.