Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker
FastAPI + React is a cookiecutter template that allows developers to easily bootstrap a project using a modern stack. The template includes features such as FastAPI (Python 3.8), JWT authentication using OAuth2 “password flow” and PyJWT, React with Typescript, react-router v5 for routing, PostgreSQL for the database, SqlAlchemy for ORM, Celery for background tasks, Redis as a message broker, and more. It also includes utilities for authentication, deployment with Docker Compose and Nginx as a reverse proxy, testing with Pytest, and an admin dashboard using MaterialUI and react-admin.
To install the FastAPI + React template, follow these steps:
<code>pip install cookiecutter</code>
<code>pip install docker-compose</code>
<code>cookiecutter https://github.com/<cookiecutter-template-url></code>
<code>docker-compose up --build</code>
FastAPI + React is a cookiecutter template that provides a streamlined and comprehensive project structure for building web applications using FastAPI and React. It includes various features such as authentication, database management, testing, and deployment using modern tools and technologies. By using this template, developers can save time on setting up the project’s infrastructure and focus more on building the core functionality of their application.