尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Hyperlocal marketplace for food, groceries and everyday essentials.
A shop appears only when the customer is inside the shop's own delivery radius and the shop is inside the radius the customer chose. Both directions must hold — there is no wider fallback.
| Layer | Choice |
|---|---|
| Framework | Next.js 16 (App Router) + TypeScript |
| Styling | Tailwind CSS v4 (CSS-first @theme) |
| Database | Supabase Postgres + PostGIS |
| Auth | Supabase Auth — phone OTP, Google, email + password |
| Storage | Supabase Storage |
| Realtime | Supabase Realtime |
One app serves all four audiences. Routes are grouped by role and separated by Postgres row level security, not by separate builds.
| Area | Routes | Role |
|---|---|---|
| Customer / guest | /, /browse, /cart, /orders | none / customer |
| Business | /business/** | seller |
| Delivery | /delivery/** | delivery |
| Admin | /admin/** | admin |
npm install
cp .env.example .env.local # then fill in your Supabase keys
npm run dev
Open http://localhost:3000. The website needs the Supabase keys in .env.local to render; without them it shows an error page.
.env.local.supabase/migrations/ in order, either with the
Supabase CLI (supabase db push) or by pasting each file into the SQL editor.Migrations are ordered and idempotent to apply in sequence.
| File | Contents |
|---|---|
0001_foundation | Extensions, enums, role helpers |
0002_identity | profiles, user_roles, addresses, new-user trigger |
0003_catalog | categories, sellers, products |
0004_commerce | cart_items, orders, order_items, order_events, payments |
0005_delivery | Agents, fleets, invites, assignments |
0006_engagement | Reviews, favourites, notifications |
0007_platform | Platform settings, audit log, upload ledger |
0008_marketplace | nearby_sellers, nearby_products, nearby_categories |
0009_rls | Row level security for every table |
0010_functions | Order lifecycle, payments, delivery, admin review |
0011-0024 | Hardening, images, order flow and live tracking, Cashfree payments (see each file's header) |
0025_foundation_hardening | Stronger delivery code with lockout, expiry of ignored paid orders and abandoned payments |
0026_subscriptions | Monthly shop subscription: trial, grace, suspension, gating |
0027_assign_delivery | The shop assigns its own delivery partner (replaces the open claim) |
0028_shop_documents | FSSAI and GST documents, FSSAI-gated approval, expiry hides a food shop, licence shown to customers |
0029_web_push | Browser notifications: subscriptions, delivery queue on notifications, refund notice |
0030_order_exits | Shop cancel, failed delivery, rider hand-back, refunds, cash handover, customer problem reports |
0031_hours_and_auto_accept |
Order and payment amounts are integers in paise. Nothing computes with a formatted value. The invariant the system maintains is:
verified_prepaid + cash_collected + unpaid = total
verified_prepaid_paise is written only when a seller verifies a payment.
cash_collected_paise is written only when a delivery partner completes an
order with the customer's six-digit code. No status alone ever implies money
was received.
Defined once in src/app/globals.css under @theme:
#ff4d1c, accent saffron #ffb020| Opening hours enforced at order time, optional auto-accept |
0032_account_and_cleanup | Account erasure (anonymize_customer), drops unused notification_devices |
0033_admin_console | Pause a shop or rider, order search and timeline, admin management, audit trail |