Add FastAPI backend with agent system

This commit is contained in:
2026-03-21 10:13:29 +08:00
parent ed6bab59fe
commit 6ffa07adde
82 changed files with 11138 additions and 0 deletions

35
backend/README.md Normal file
View File

@@ -0,0 +1,35 @@
# Jarvis Backend
## 快速开始
### 1. 安装依赖
```bash
cd backend
uv sync
```
### 2. 配置环境变量
```bash
cp .env.example .env
# 编辑 .env 填入 API Key
```
### 3. 启动开发服务器
```bash
uv run uvicorn app.main:app --reload --port 8000
```
### 4. API 文档
启动后访问 http://localhost:8000/docs 查看交互式 API 文档。
## 环境变量
`.env.example`
## 数据库
SQLite 数据库位于 `./data/jarvis.db`,首次启动自动创建表。