73 lines
1.6 KiB
Markdown
73 lines
1.6 KiB
Markdown
|
|
# 快速访问链接
|
||
|
|
|
||
|
|
## 🌐 在浏览器中打开
|
||
|
|
|
||
|
|
### 前端应用
|
||
|
|
- 🏠 **主页**: http://localhost:3000
|
||
|
|
- 🔐 **登录页面**: http://localhost:3000/login
|
||
|
|
- 📊 **仪表盘**: http://localhost:3000/dashboard (需要登录)
|
||
|
|
- 📄 **文档管理**: http://localhost:3000/documents (需要登录)
|
||
|
|
- ✅ **待办事项**: http://localhost:3000/todos (需要登录)
|
||
|
|
- 🖼️ **图片管理**: http://localhost:3000/images (需要登录)
|
||
|
|
|
||
|
|
### 后端 API
|
||
|
|
- ❤️ **健康检查**: http://localhost:4000/api/health
|
||
|
|
- 👤 **注册用户**: POST http://localhost:4000/api/auth/register
|
||
|
|
- 🔑 **用户登录**: POST http://localhost:4000/api/auth/login
|
||
|
|
|
||
|
|
## 👤 测试账号
|
||
|
|
|
||
|
|
```
|
||
|
|
用户名: testuser
|
||
|
|
密码: Password123@
|
||
|
|
```
|
||
|
|
|
||
|
|
## 🚀 快速命令
|
||
|
|
|
||
|
|
### 启动服务器
|
||
|
|
```bash
|
||
|
|
# 后端 (在项目根目录)
|
||
|
|
cd backend && npm run dev
|
||
|
|
|
||
|
|
# 前端 (在项目根目录)
|
||
|
|
cd frontend && npm run dev
|
||
|
|
```
|
||
|
|
|
||
|
|
### 运行测试
|
||
|
|
```bash
|
||
|
|
# 后端单元测试
|
||
|
|
cd backend && npm test
|
||
|
|
|
||
|
|
# 前端单元测试
|
||
|
|
cd frontend && npm test
|
||
|
|
|
||
|
|
# E2E 测试
|
||
|
|
cd frontend && npm run test:e2e
|
||
|
|
```
|
||
|
|
|
||
|
|
## 📱 访问应用
|
||
|
|
|
||
|
|
1. 打开浏览器
|
||
|
|
2. 访问 http://localhost:3000
|
||
|
|
3. 使用测试账号登录:
|
||
|
|
- 用户名: `testuser`
|
||
|
|
- 密码: `Password123@`
|
||
|
|
4. 探索各项功能!
|
||
|
|
|
||
|
|
## 🎯 功能清单
|
||
|
|
|
||
|
|
### ✅ 已完成
|
||
|
|
- [x] 用户认证 (注册/登录)
|
||
|
|
- [x] 文档管理 (创建/查看/搜索/删除)
|
||
|
|
- [x] 待办管理 (三态工作流)
|
||
|
|
- [x] 图片管理 (上传/OCR)
|
||
|
|
- [x] 响应式 UI 设计
|
||
|
|
- [x] 单元测试 (148 个测试)
|
||
|
|
- [x] API 测试
|
||
|
|
|
||
|
|
### ⏳ 待完成
|
||
|
|
- [ ] OCR 集成
|
||
|
|
- [ ] AI 分析功能
|
||
|
|
- [ ] Docker 部置
|
||
|
|
- [ ] E2E 测试运行
|