尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A full-stack personal finance app built with the Next.js App Router. Record income and expenses by category, then edit, duplicate or delete them — all through Server Actions, with every query scoped to the signed-in user.
Live demo: https://nextjs-crud-gold-gamma.vercel.app (sign up with any email — it's a demo database)
/transaction/* and signed-in users away from the auth pagesnext-themesServer Actions are public HTTP endpoints — anyone can POST to them, not just the UI. So every action re-checks on the server:
where: { id, userId } on update/delete, so another user's ID simply matches nothing),| Area | Tools |
|---|---|
| Framework | Next.js 15 (App Router, Server Actions, Turbopack), React 19, TypeScript |
| Auth | Auth.js v5 (NextAuth) |
| Database | PostgreSQL (Neon) + Prisma ORM |
| Forms & validation | React Hook Form + Zod |
| UI | Tailwind CSS 4, shadcn/ui (Radix), lucide-react, sonner |
Requires Node.js 20+, pnpm and a PostgreSQL database (e.g. a free Neon project).
pnpm install # also runs `prisma generate`
cp .env.example .env # fill in DATABASE_URL and AUTH_SECRET
pnpm prisma migrate deploy # create tables
pnpm db:seed # insert income/expense categories
pnpm dev # http://localhost:3000
| Variable | Description |
|---|---|
DATABASE_URL | PostgreSQL connection string |
AUTH_SECRET | Secret for signing session tokens — generate with npx auth secret |
AUTH_TRUST_HOST | Set to true when running next start outside Vercel (Vercel is detected automatically) |
NEXT_PUBLIC_APP_NAME / NEXT_PUBLIC_APP_DESCRIPTION | Optional branding (defaults to "Expense Tracker") |
src/
├── app/
│ ├── (auth)/ # /signin, /signup
│ └── (transaction)/ # /transaction, create, [id]/edit, [id]/create (duplicate)
├── components/ # auth forms, transaction list/form, layout, shadcn/ui
├── lib/
│ ├── actions/ # Server Actions (auth, transactions)
│ ├── datas/ # Server-side data fetching
│ ├── schemas/ # Zod schemas shared by client and server
│ ├── services/ # Sign-up logic
│ └── auth/ # Auth.js configuration
└── middleware.ts # Route protection
prisma/
├── schema.prisma
└── migrations/