尚未检测到更新。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.