diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 20f7dc8..36ae5ab 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -97,7 +97,8 @@ "Bash(git -C \"E:/qia\" commit -m \"chore: 更新子模块\")", "Bash(git -C \"E:/qia\" status)", "Bash(git -C E:/qia/client diff --stat)", - "Bash(git -C E:/qia/server diff --stat)" + "Bash(git -C E:/qia/server diff --stat)", + "Bash(set PORT=3001)" ] } } diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..7825acb --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,53 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Overview + +"掐日子" (Qia Rizi) - AI 纪念日·提醒 - A Chinese calendar reminder app with anniversaries, reminders, and notes. + +## Project Structure + +``` +qia/ +├── client/ # Frontend (React 19 + TypeScript + Vite) +├── server/ # Backend (Node.js + Express + Prisma) +├── docs/ # Documentation +└── ui/ # Design assets +``` + +## Commands + +### Frontend (client/) +```bash +cd client +pnpm install +pnpm dev # Start dev server (http://localhost:5173) +pnpm build # Production build +pnpm lint # Run ESLint +``` + +### Backend (server/) +```bash +cd server +npm install +npm run dev # Start dev server (http://localhost:3000) +``` + +## Backend API Endpoints + +| Endpoint | Method | Description | +|----------|--------|-------------| +| `/api/auth/register` | POST | User registration | +| `/api/auth/login` | POST | User login | +| `/api/auth/logout` | POST | Logout | +| `/api/auth/me` | GET | Get current user | +| `/api/auth/refresh` | POST | Refresh token | +| `/api/events` | GET/POST | Events CRUD | +| `/api/events/:id` | PUT/DELETE | Event operations | +| `/api/notes` | GET/PUT | Notes operations | +| `/api/ai/parse` | POST | AI event parsing | + +## Frontend Architecture + +See `client/CLAUDE.md` for detailed frontend guidance. diff --git a/client b/client index ab12b07..2feb02b 160000 --- a/client +++ b/client @@ -1 +1 @@ -Subproject commit ab12b0717f6d2d38adfd402908dab133354bba9b +Subproject commit 2feb02becf6a83bc5b82150747951d9f8a6aa22a diff --git a/page-overview.png b/page-overview.png deleted file mode 100644 index 192ff79..0000000 Binary files a/page-overview.png and /dev/null differ diff --git a/page-screenshot.png b/page-screenshot.png deleted file mode 100644 index 4bcbe8a..0000000 Binary files a/page-screenshot.png and /dev/null differ diff --git a/priority-red-test.png b/priority-red-test.png deleted file mode 100644 index 4bcbe8a..0000000 Binary files a/priority-red-test.png and /dev/null differ diff --git a/priority-selector.png b/priority-selector.png deleted file mode 100644 index 2244364..0000000 Binary files a/priority-selector.png and /dev/null differ diff --git a/server b/server index e44183e..875f902 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit e44183e3e01d5cfc3629aa0495dfc6bc5cd052a5 +Subproject commit 875f902ac318961469ea2eb286c2b35afa18932b diff --git a/settings-page.png b/settings-page.png new file mode 100644 index 0000000..10641fa Binary files /dev/null and b/settings-page.png differ diff --git a/掐日子@3x.png b/掐日子@3x.png new file mode 100644 index 0000000..bf6884a Binary files /dev/null and b/掐日子@3x.png differ