尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
A point-of-sale console for Zap Thoung Café: admin login, a live dashboard, menu management, and an order/POS screen — built with Next.js (App Router), Prisma, and SQLite. • Next.js 16 (App Router, Server Actions, Turbopack) • Prisma 6 + SQLite (file-based DB, zero config — swap the datasource for Postgres/MySQL later without touching app code) • Custom cookie-based auth (bcryptjs + jose JWT), no third-party auth service • Tailwind CSS v4, hand-rolled UI primitives (no component library dependency) • recharts for the dashboard revenue chart查看完整 README ↗
A point-of-sale console for Zap Thoung Café: admin login, a live dashboard, menu management, and an order/POS screen — built with Next.js (App Router), Prisma, and SQLite.
bcryptjs + jose JWT), no third-party auth servicerecharts for the dashboard revenue chartnpm install
npx prisma migrate dev # creates prisma/dev.db and applies the schema
npm run db:seed # seeds the full Zap Thoung menu + an admin user
npm run dev
Open http://localhost:3000 — you'll be redirected to /login.
Seeded from .env (SEED_ADMIN_EMAIL / SEED_ADMIN_PASSWORD):
[email protected]ZapThoung@2026Change SEED_ADMIN_PASSWORD in .env and re-run npm run db:seed to update it, or
just change your password by editing the user in Prisma Studio (npm run db:studio).
Change AUTH_SECRET in .env before deploying anywhere real — it signs the
session cookie.
src/app/(app)/dashboard — stats, revenue trend, top sellers, recent orderssrc/app/(app)/pos — the order-taking screen (menu grid + cart)src/app/(app)/orders — order list + per-order detail/receipt with status flowsrc/app/(app)/menu — category & menu item CRUD with price variantssrc/lib/actions — Server Actions (auth, menu, orders) — all writes go through
these, never through client-side fetches to hand-rolled API routesprisma/schema.prisma — data modelprisma/seed.ts — seeds categories, items, price variants, and the admin user
from the photographed menuMenu items can have multiple price variants (e.g. Small/Medium/Large, Single/Family,
6 pcs/12 pcs, or a single "Regular" price) — see MenuItemVariant in the schema.
Orders snapshot the item name, variant label, and unit price at the time of sale, so
renaming or repricing a menu item later doesn't change historical order totals.
| Command | What it does |
|---|---|
npm run dev | Start the dev server |
npm run build / npm run start | Production build / start |
npm run db:migrate | Run Prisma migrations |
npm run db:seed | Seed the menu + admin user |
npm run db:studio | Open Prisma Studio to browse/edit data |
npm run lint | ESLint |