https://github.com/helloxz/fastinit
适用于FastAPI快速初始化项目
https://github.com/helloxz/fastinit
Last synced: 28 days ago
JSON representation
适用于FastAPI快速初始化项目
- Host: GitHub
- URL: https://github.com/helloxz/fastinit
- Owner: helloxz
- License: agpl-3.0
- Created: 2025-12-01T02:16:12.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-12-01T03:30:20.000Z (7 months ago)
- Last Synced: 2025-12-03T13:57:26.221Z (7 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 目录说明
* app:后端路径
* app/api:API文件路径
* app/data:数据路径,通常保存一些配置文件、日志等,应该添加到`.gitignore`
* app/middleware:中间件
* app/utils:常用函数
* app/config.py:配置类
* app/main.py:程序入口、主函数
## 使用
```
git clone https://github.com/helloxz/fastinit.git
python3 -m venv myenv
source myenv/bin/activate
pip3 install -r app/requirements.txt
bash run.sh dev
```
## 命名规范
* app/api中,命名统一:FileNameHandler
* app/model中,命名统一:FileNameModel