家庭日常
+当前成员
+权限说明
+diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..c21c2c4 --- /dev/null +++ b/.env.example @@ -0,0 +1,14 @@ +# Production/public domain. Must resolve to the VPS running frps. +DOMAIN=cents.homemade.net.cn + +# Public VPS / frps address. +FRPC_SERVER_HOST=119.28.12.24 +FRPC_SERVER_PORT=7000 + +# Production target. For host-debug mode, keep host.docker.internal. +APP_HOST=host.docker.internal +APP_PORT=6064 +APP_PROTOCOL=http + +# Use false only after the tunnel is known to work. +TEST_MODE=false diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bbd338a --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +legacy-cent-app/ +node_modules/ +dist/ +.env +.env.* +!.env.example +*.log +.DS_Store + diff --git a/README.md b/README.md index e69de29..a7b9457 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,31 @@ +# Cents + +家庭共享账本 App。 + +目标是做一个精简、可靠、可离线使用的手机应用,支持 Android 和 iOS。用户在无网络时也能记账,网络恢复后自动同步到家庭共享账本。 + +当前阶段:产品边界和技术设计。 + +- [产品边界](docs/产品边界.md) +- [技术方案](docs/技术方案.md) +- [数据与同步](docs/数据与同步.md) +- [测试策略](docs/测试策略.md) +- [内网穿透调试](docs/内网穿透调试.md) +- [HTML 原型图](docs/原型图/原型说明.md) +- [评审问题](docs/评审问题.md) + +## 本地开发 + +```bash +npm install +npm run dev +``` + +前端默认运行在 `http://localhost:5173/`。 + +常用检查: + +```bash +npm run typecheck +npm run build +``` diff --git a/apps/web/index.html b/apps/web/index.html new file mode 100644 index 0000000..6cf23aa --- /dev/null +++ b/apps/web/index.html @@ -0,0 +1,15 @@ + + +
+ + + + +由小王创建 · 2026年7月19日 12:29
+ + + + +当前账本决定流水、统计和快速记账的默认归属。
+快速记账在账本流水页底部抽屉内完成。轮盘是临时选择态,不能把所有层级同时放在一个画面里。
+家庭日常
+当前成员
+权限说明
+我的账本
+ +