Fastapi Postgresql Boilerplate

screenshot of Fastapi Postgresql Boilerplate

A boilerplate for building fast and reliable web applications with FastAPI and PostgreSQL.

Overview

FPBP (FastAPI-PostgreSQL-Boilerplate) is an exciting boilerplate designed to streamline the development of data-driven applications using FastAPI and PostgreSQL. With its modern design and adherence to high-performance standards, FastAPI allows developers to create robust APIs with ease. Whether you are starting a new project or looking to enhance an existing one, this boilerplate provides a solid foundation, packed with powerful tools and features that promise to enhance productivity and maintainability.

The integration of essential technologies like Docker and SQLAlchemy further empowers developers to build reliable applications efficiently. This boilerplate not only simplifies the setup process but also ensures that your application maintains high security and adheres to industry standards with features like JWT authentication. If you are aiming to develop a scalable and fast API, FPBP might be the perfect solution for you.

Features

  • JWT Authentication: Provides secure access to your API, ensuring that only authorized users can interact with it.
  • Layered Architecture: Incorporates a structured approach (Controller, Service, Repository, Model) for better organization and maintainability of code.
  • Dependency Injection: Promotes better code organization and testing practices, making your application modular and easy to manage.
  • API Documentation Tools: Automatically generates interactive API documentation using Swagger and Redoc, facilitating easier testing and understanding of the API.
  • Schema Validation: Ensures that both input and output data conform to predefined schemas, enhancing data integrity and reducing errors.
  • Fast Python Linter: Integrates Ruff, a high-performance linter and code formatter, to streamline your coding workflow and maintain code quality.
  • Docker Support: Simplifies development and deployment processes, allowing for consistent environments across different setups.
  • Comprehensive Testing Framework: Leverages Pytest, making it straightforward to write tests and ensure your application works as intended.
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.