From c4046e9f7e63f6d6b9be04b88bc6a09f9c9b8c47 Mon Sep 17 00:00:00 2001 From: Misaka Date: Wed, 20 May 2026 22:25:36 +0800 Subject: [PATCH] Initial commit: project scaffold with android and backend submodules Set up monorepo structure with git submodules: - android/ -> SnapLedger-Android (Kotlin + Jetpack Compose) - backend/ -> SnapLedger-Backend (Python FastAPI) Co-Authored-By: Claude Opus 4.6 --- .gitignore | 15 +++++++++++++++ .gitmodules | 6 ++++++ README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ android | 1 + backend | 1 + 5 files changed, 67 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 README.md create mode 160000 android create mode 160000 backend diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8274b --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# IDE +.idea/ +.vscode/ +*.iml + +# OS +.DS_Store +Thumbs.db + +# Env +.env +.env.* + +# Claude +.claude/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a24eb98 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "android"] + path = android + url = ../SnapLedger-Android +[submodule "backend"] + path = backend + url = ../SnapLedger-Backend diff --git a/README.md b/README.md new file mode 100644 index 0000000..097cd71 --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ +# SnapLedger + +基于"系统分享 + 对象存储 + 大模型视觉提取"的无感自动化记账工具。 + +## 项目结构 + +``` +SnapLedger/ +├── android/ # Android 客户端 (Kotlin + Jetpack Compose) +├── backend/ # 后端服务 (Python FastAPI) +└── README.md +``` + +## 技术栈 + +| 层级 | 技术 | +|------|------| +| Android | Kotlin, Jetpack Compose | +| 后端 | Python, FastAPI | +| 数据库 | PostgreSQL | +| 对象存储 | MinIO (S3 兼容) | +| AI (Phase 2) | LLM Vision API | + +## 快速开始 + +### 后端 + +```bash +cd backend +# 参考 backend/README.md +``` + +### Android + +```bash +cd android +# 参考 android/README.md +``` + +## 开发阶段 + +- **Phase 1**: 数据通道基建 (MVP) - 当前 +- **Phase 2**: 引入 AI 大脑 (自动化) +- **Phase 3**: 数据看板与高级功能 diff --git a/android b/android new file mode 160000 index 0000000..72f6d3b --- /dev/null +++ b/android @@ -0,0 +1 @@ +Subproject commit 72f6d3b2c7693cd147486b27be133e35ecf989f0 diff --git a/backend b/backend new file mode 160000 index 0000000..a7ae5cb --- /dev/null +++ b/backend @@ -0,0 +1 @@ +Subproject commit a7ae5cba5ddea4e41cf0881f9cf49102df2360e1