- App: Chizze — Premium food delivery platform
- Tagline: "Delicious food, delivered fast"
- Version: 1.2.4+9 (Flutter), 1.2.0 (Backend)
- Apps: Customer App · Restaurant Partner App · Delivery Partner App · Admin Panel (building)
- Mobile Frontend: Flutter (Riverpod, go_router, Dio, Appwrite SDK)
- Backend: Go (Gin framework) —
H:\chizze\backend\ - BaaS: Appwrite —
https://sgp.cloud.appwrite.io/v1 - Database: Appwrite DB, ID:
chizze_db - Cache / Rate limiting: Redis (
redis://localhost:6379dev, env-configured prod) - Payments: Razorpay
- Push Notifications: Firebase Cloud Messaging (FCM)
- Real-time: WebSocket hub (Go) + Appwrite Realtime
- Monitoring: Sentry + OpenTelemetry
- Base URL:
https://api.devdeepak.me/api/v1 - Dev URL:
http://localhost:8080/api/v1 - Auth: JWT Bearer token in
Authorizationheader - Swagger UI:
/swagger/index.html(non-release mode only)
- Endpoint:
https://sgp.cloud.appwrite.io/v1 - Project ID:
6993347c0006ead7404d - Database ID:
chizze_db
- OTP-based login (phone number → OTP → JWT)
- Roles:
customer|restaurant_owner|delivery_partner|admin - JWT stored in Redis for session management + revocation
- Admin role exists in User model — no admin UI existed before this build
User— id, name, email, phone, role, is_gold_member, referral_code, fcm_token, lat/lngRestaurant— id, owner_id, name, cuisines, city, rating, is_featured, is_promoted, is_onlineMenuCategory,MenuItem— restaurant menu structureOrder— full lifecycle with timestamps per statusOrderItem— line itemsDeliveryPartner— vehicle, location, rating, earnings, documents_verifiedDeliveryLocation— real-time rider lat/lng (Appwriterider_locationscollection)Payout— pending | processing | completed | failedCoupon— percentage | flat, usage limits, validity windowGoldSubscription— monthly | quarterly | annual (₹149 / ₹349 / ₹999)Referral— referrer/referred tracking, reward amountReview— food_rating + delivery_rating (1-5), photos, restaurant_replyNotification— order_update | promo | system | reviewScheduledOrder— future-scheduled orders
placed → confirmed → preparing → ready → pickedUp → outForDelivery → delivered (cancelled possible from placed/confirmed/preparing)
pending → paid | refunded | failed
pending → processing → completed | failed
DeliveryMatcher— matches orders to nearby riders (15s tick + instant on order ready/rider reject)OrderTimeout— auto-cancel unconfirmed orders (5 min timeout, 30s check)ScheduledOrderProcessor— processes scheduled orders (30s tick)NotificationDispatcher— sends FCM push notifications (10s tick)
- Directory:
H:\chizze\admin\ - Framework: Next.js 15 (App Router) + TypeScript
- UI: Tailwind CSS + shadcn/ui
- Maps: react-map-gl + Mapbox GL JS
- Real-time: SSE + WebSocket
- Orange (Primary/Brand):
#F49D25 - Deep Orange (Hover):
#E8751A - Background:
#0D0D0D - Card BG:
#1A1A1A - Elevated Surface:
#252525 - Primary Text:
#FFFFFF - Secondary Text:
#A0A0A0 - Tertiary/Hint:
#666666 - Success/Green:
#22C55E - Error/Red:
#EF4444 - Warning/Yellow:
#FACC15 - Info/Blue:
#3B82F6 - Rating Star:
#FBBF24
- Font: Plus Jakarta Sans (all weights)
- Weights used: 400, 500, 600, 700, 800
/login— OTP auth restricted to admin role/— Dashboard (KPI cards, charts, live feed)/users+/users/:id— User management/restaurants+/restaurants/:id— Restaurant management/orders+/orders/:id— Order management/delivery-partners+/delivery-partners/:id— Rider management/payouts— Payout approval/coupons— Coupon CRUD/reviews— Review moderation/gold— Gold membership management/referrals— Referral tracking/notifications— Push broadcast/settings— Platform config/live-map— Real-time Mapbox map (riders + orders + restaurants)/live-users— Active WebSocket sessions/live-orders— Kanban order board (real-time)/approvals/restaurants— New restaurant applications/approvals/delivery-partners— Document verification queue/disputes— Dispute resolution/sla— SLA monitoring/reports— Financial reports + CSV/PDF export/leaderboards— Top restaurants/customers/riders/analytics/items— Item-level analytics/analytics/cities— City-level breakdown/analytics/retention— Cohort + retention analysis/content— Home screen banners/zones— Service area management (map-based)/surge— Surge pricing rules/feature-flags— Feature toggles/audit-log— Admin action log/support— Support tickets/settings/admins— Admin account management
- next@15, react@19, typescript
- tailwindcss, @shadcn/ui
- @tanstack/react-table, @tanstack/react-query
- recharts
- react-map-gl, mapbox-gl
- date-fns
- papaparse (CSV export)
- jspdf, html2canvas (PDF export)
- axios (HTTP client)
- sonner (toasts)
- lucide-react (icons)
- next-themes
- Admin role already exists in Go User model — just needs endpoints + UI
- Backend WebSocket hub already handles real-time events — admin SSE taps into this
- Mapbox token needed in
.env.localasNEXT_PUBLIC_MAPBOX_TOKEN - All admin routes under
/api/v1/adminrequiremiddleware.RequireRole("admin")