Skip to content

一个常见的 FastAPI 的快速开始 api 项目的模板,目前包含 utils 内的 logger、auth 部分的 Bearer 验证、Supabase 数据库、App Config 等配置项,目前仍然在逐步完善中。

Notifications You must be signed in to change notification settings

ErlichLiu/FastAPI-Boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

项目介绍

这是一个帮助你快速开始一个 fastAPI 的启动模板,包含常见的配置,目前还在完善当中。目标是节省每次开始 api 项目时反反复复做配置的时间。

技术栈

  • Package Manager: UV
  • Framework: fastAPI
  • Logger: colorlog
  • Auth: Bearer Auth

项目包含

  • UV 的包管理器
  • Logger 模块
  • Auth 模块
  • App config 模块
    • 自动文档配置
    • CORS 配置
    • Server 配置
  • 更完善的 .gitignore

使用方法

  1. Clone 本项目
  2. 进入到项目文件夹
  3. 执行 uv sync- 创建虚拟环境和安装依赖
  4. 确保进入虚拟环境
  5. 接下来就交给你开始吧

About

一个常见的 FastAPI 的快速开始 api 项目的模板,目前包含 utils 内的 logger、auth 部分的 Bearer 验证、Supabase 数据库、App Config 等配置项,目前仍然在逐步完善中。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages