添加了完整的前后端开发环境配置,包括: - 创建 .gitignore 文件忽略本地生成目录和环境文件 - 添加详细的 README.md 开发指南文档 - 配置 backend 目录结构和 FastAPI 应用基础框架 - 实现应用配置管理、健康检查和状态接口 - 设置 uv 依赖管理和虚拟环境配置 - 完成 CORS 中间件配置支持前端开发联调
23 lines
517 B
Plaintext
23 lines
517 B
Plaintext
Metadata-Version: 2.4
|
|
Name: notes-agent-backend
|
|
Version: 0.1.0
|
|
Summary: Notes Agent 的 FastAPI 基础壳子
|
|
Requires-Python: >=3.11
|
|
Description-Content-Type: text/markdown
|
|
Requires-Dist: fastapi<1.0,>=0.116
|
|
Requires-Dist: uvicorn[standard]<1.0,>=0.35
|
|
|
|
# Backend
|
|
|
|
FastAPI + Pydantic 的最小后端壳子。
|
|
|
|
```powershell
|
|
uv sync
|
|
uv run uvicorn app.main:app --reload --host 127.0.0.1 --port 8000
|
|
```
|
|
|
|
启动后可访问:
|
|
|
|
- 健康检查:<http://127.0.0.1:8000/health>
|
|
- API 文档:<http://127.0.0.1:8000/docs>
|