Files
life_goals/app/README.md
T
adminandClaude Sonnet 4.6 a1561c7d43 chore: 初始化仓库结构
- 建立 monorepo 结构:app/ + server/ + docs/
- 纳入全部需求/架构/开发计划文档
- 新增 docs/PROGRESS.md 功能状态总览
- 新增 docs/decisions/ ADR 决策记录(001-004)
- 新增根目录 README.md 含 AI 阅读指引
- 新增 .gitignore

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 16:39:16 +08:00

43 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# app — React 前端
> 人生目标 App 的前端代码,目标是 PWA(Phase 2)后续打包为 Capacitor 原生 App(Phase 3)。
## 当前状态
📋 **待初始化** — 代码目前以 Claude Artifact 形式存在(`life-goals.jsx`),Phase 2 时迁移至此目录并引入 Vite 构建工具。
## 技术栈(规划)
| 项目 | 技术 |
|------|------|
| 框架 | React + Vite |
| 样式 | Inline CSS + CSS Variables |
| 存储 | localStorage(PWA)/ SQLite(Capacitor) |
| AI 接口 | Anthropic API(Phase 4 前直连,之后走 server 代理) |
| 打包 | Capacitor(Phase 3) |
## 启动方式(初始化后)
```bash
cd app
npm install
npm run dev
```
## 目录结构(初始化后规划)
```
app/
├── public/
│ ├── manifest.json — PWA 配置
│ └── icons/
├── src/
│ ├── components/ — GoalNode / ScoreRing / CheckIn 等
│ ├── pages/
│ ├── services/ — callAI() / storage 封装
│ └── main.jsx
└── package.json
```
> 详见 [架构设计文档](../docs/03-架构设计/技术选型与数据结构.md)