尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證This is the codebase for DRNK
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Next.js 16 (App Router) + TypeScript + PostgreSQL + Drizzle. Bengaluru launch MVP: explore, dine-in, events and tickets, talent enquiries, mobile-OTP accounts, rewards ledgers, and merchant/admin workspaces.
Read first: docs/PRODUCTION_READINESS.md (what is and is not verified), then docs/IMPLEMENTATION_PLAN.md (status and next step).
Prerequisites: Node 22+, PostgreSQL 16 reachable locally.
npm install
cp .env.example .env.local # edit DATABASE_URL / TEST_DATABASE_URL
createdb drnk_dev && createdb drnk_test
set -a; source .env.local; set +a # db:migrate / db:seed read DATABASE_URL from the shell, not .env.local
npm run db:migrate
npm run db:seed # demo data, refuses APP_ENV=production
npm run dev # http://localhost:3000 (Next loads .env.local itself)
Demo logins (development only; the dev OTP adapter accepts code 123456):
| Role | Phone |
|---|---|
| Admin | +919000000001 |
| Customer | +919000000002 |
| Customer 2 | +919000000003 |
| Merchant | +919000000004 |
Payments run through a local sandbox provider: book tickets, press "Pay now", then "Simulate successful payment". The booking confirms only because a correctly signed webhook is processed server-side.
| Script | Purpose |
|---|---|
npm run lint, npm run typecheck | Static checks |
npm test | Unit + integration tests (real Postgres via TEST_DATABASE_URL) |
npm run test:e2e | Playwright (needs npx playwright install chromium, or set E2E_CHROMIUM_PATH to an installed Chromium). Needs a built app and a migrated, seeded database in E2E_DATABASE_URL |
npm run build, npm start | Production build and server |
npm run db:generate, db:migrate, db:seed | Drizzle migrations and demo data |
npx tsx scripts/smoke.ts | HTTP smoke test against a running server (BASE_URL) |
| Doc | Content |
|---|---|
docs/PROJECT_AUDIT.md | Starting state and inputs not provided |
docs/ARCHITECTURE.md | Design, security model, payment and reward flows |
docs/IMPLEMENTATION_PLAN.md | Module status, next step, outstanding decisions, known limitations |
docs/SECURITY_CHECKLIST.md | Controls with evidence and status |
docs/TEST_PLAN.md | Results, inventory, gaps |
docs/DEPLOYMENT_RUNBOOK.md | Staging/production procedure (not executed) |
docs/PRODUCTION_READINESS.md | Go/no-go assessment |
docs/API.md | Endpoint reference |
docs/DESIGN_PORT.md | What was taken from the AI Studio prototype and what was left out |
reward_rules row exists.Legal pages are drafts with placeholders and need counsel review before launch.