# cookiecutter-fastapi **Repository Path**: if-always/cookiecutter-fastapi ## Basic Information - **Project Name**: cookiecutter-fastapi - **Description**: fastapi模板 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 15 - **Forks**: 11 - **Created**: 2023-07-19 - **Last Updated**: 2024-08-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 安装 ``` pip install cookiecutter ``` #### 使用 ``` cookiecutter https://gitee.com/if-always/cookiecutter-fastapi ``` #### 结构 ``` api // 接口函数 component // 常用组件(mysql、redis......) core // fastapi 核心层 log // 日志 models // 模板 network // 网络请求封装 router // 路由 service // view层 timer // 定时器 util // 工具函数 debug.py // 本地测试入口 defines.py // 常量定义 env.py // 配置文件 main.py // 线上入口 Dockerfile // docker docker-compose.yml // compose 启动 ``` 鸣谢 ``` 日志类以及数据库的封装参考feapder https://github.com/Boris-code/feapder ``` 联系 ![image](weixin.jpg)