初始化项目基础结构

添加了完整的前后端开发环境配置,包括:
- 创建 .gitignore 文件忽略本地生成目录和环境文件
- 添加详细的 README.md 开发指南文档
- 配置 backend 目录结构和 FastAPI 应用基础框架
- 实现应用配置管理、健康检查和状态接口
- 设置 uv 依赖管理和虚拟环境配置
- 完成 CORS 中间件配置支持前端开发联调
This commit is contained in:
2026-08-27 11:19:36 +08:00
commit 08e4aeea0c
29 changed files with 3539 additions and 0 deletions
@@ -0,0 +1,22 @@
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>
@@ -0,0 +1,12 @@
README.md
pyproject.toml
app/__init__.py
app/config.py
app/main.py
app/schemas.py
notes_agent_backend.egg-info/PKG-INFO
notes_agent_backend.egg-info/SOURCES.txt
notes_agent_backend.egg-info/dependency_links.txt
notes_agent_backend.egg-info/requires.txt
notes_agent_backend.egg-info/top_level.txt
tests/test_api.py
@@ -0,0 +1 @@
@@ -0,0 +1,2 @@
fastapi<1.0,>=0.116
uvicorn[standard]<1.0,>=0.35
@@ -0,0 +1 @@
app