前端开发指南
环境准备
# 安装依赖(从项目根目录)
npm install
# 启动前端开发服务器
npm -w frontend run dev
# 或
npm run dev:frontend
前端运行在 http://localhost:5173,API 请求通过 Vite 代理转发到后端。
目录结构
apps/frontend/
├── src/
│ ├── components/ # 通用 UI 组件
│ ├── editor/ # React Flow 工作流编辑器
│ ├── dashboard/ # 项目管理仪表盘
│ ├── assistant/ # LLM 对话助手
│ ├── api/ # API 请求封装
│ ├── hooks/ # 自定义 React Hooks
│ ├── stores/ # Zustand 状态管理
│ ├── i18n/ # 国际化配置
│ └── test/ # 测试配置
├── public/
├── index.html
├── vite.config.ts
├── tsconfig.json
└── package.json