DELIVERY TEMPLATE
Get in touch

Food delivery source code · 5 apps · 1 backend

Launch your own food delivery platform, without building it from scratch.

Customer website, rider app, restaurant staff app, admin and seller panels, and a FastAPI backend. Live rider tracking, three payment gateways, coupons, wallet, table booking and an AI assistant are already built.

Apps
5
Gateways
3
Languages
3
Storage
7
LIVE ORDER#1087
Green Leaf Kitchen
Ready
Spice Route
Preparing
Rider
Assigned · 1.4 km
Payment
Stripe · Wallet −$5
Tracking
Live

What is in the box

Five applications and a backend, all wired together

Next.js · 3 languages

Customer website

  • Browse nearby restaurants, filter veg-only, takeaway, table booking, open-now
  • Menu with variants & add-ons, multi-restaurant cart
  • Checkout: delivery or pickup, saved addresses, coupons, wallet
  • Live rider tracking on a map, order history, reviews
  • AI chat assistant, dark mode, English / Spanish / Arabic

Expo · iOS & Android

Rider app

  • OTP login, rider registration (vehicle & licence)
  • Online / offline toggle with live location
  • Real-time job offers with pickup, drop, distance, ETA and payout
  • Turn-by-turn route map with automatic re-routing
  • Pickup confirmation and customer-OTP proof of delivery

Expo · iOS & Android

Restaurant staff app

  • Store-manager login, then fast 4-digit PIN per staff member
  • Incoming orders and table reservations in one screen
  • Accept, reject, start preparing, mark ready, hand over
  • Shows the handoff OTP for the rider
  • Branding pulled from your admin settings

Next.js · role-based

Admin & seller panel

  • Super admin: regions on a map, admins, cuisines, coupons, audit log, global settings
  • Regional admin: onboard and approve restaurants, set commission
  • Seller / store manager: menu, staff, restaurant details
  • Global catalog to pre-fill menu items in seconds

FastAPI · MongoDB · Redis

Backend API

  • JWT in HttpOnly cookies with refresh tokens
  • Celery workers & scheduler, Flower monitoring
  • H3 geo-indexing, vector search, audit logging
  • Server-side price, coupon and wallet verification

Ready to run

Docs & deployment

  • Docker Compose for Redis, Celery, MinIO, Qdrant, Mailhog
  • Azure production deployment guide
  • Redis / Celery setup guides
  • Route & role access matrix, auth documentation

How an order flows

From cart to doorstep, handled for you

  1. 01

    Customer orders from one or many restaurants

    One cart can span several restaurants. Each restaurant gets its own sub-order and the customer sees one combined order with a status for each.

  2. 02

    Restaurant accepts and prepares

    Staff accept or reject, start preparing, and mark ready. The server enforces the allowed transitions so nobody can skip a step.

  3. 03

    Smart rider dispatch

    Offers go to the nearest 3 online riders, widening from 1 km to 2 km to 5 km. Each offer expires in 20 seconds. Acceptance is atomic, so two riders never get the same order.

  4. 04

    Live tracking

    The rider's route and position stream to the customer's order page in real time through Firebase.

  5. 05

    OTP-verified delivery

    The rider enters the customer's OTP to complete the order. Takeaway orders skip dispatch and are handed over at the counter.

Features

Everything you need to run the business, not just take orders

Payments

  • Razorpay, Stripe and PayPal, with webhooks
  • Cash and wallet payments
  • Switch gateway from the admin panel, no code change
  • Wallet balance applied at checkout

Coupons & growth

  • Coupons by restaurant, region, category, user segment or item
  • Percentage, flat and free-delivery discounts with limits
  • Automatic customer segments: new, high spender, dormant, churn risk
  • Gift cards: buy, send and redeem into wallet

Restaurants & menu

  • Variants, add-on groups, veg / egg / spice tags
  • Availability by day and time
  • Commission per restaurant with history
  • Table booking and takeaway toggles

Delivery operations

  • Region coverage with H3 hexagons on a map
  • Cascading rider dispatch with ETA and route
  • Rider KYC, vehicle and licence fields
  • Google Routes for distance and ETA

Discovery & AI

  • Search across restaurants and dishes, including semantic search
  • AI assistant for discovery, policies and order tracking
  • Choose Groq, OpenRouter, Gemini, OpenAI or local Ollama

Reviews & trust

  • Restaurant and delivery ratings with photos
  • Merchant replies
  • Audit log of admin status overrides
  • 11 roles defined, 7 with working panels

Branding & localisation

  • Logo, theme colour and app name from settings
  • Currency, timezone and language settings
  • Customer site in English, Spanish, Arabic
  • Dark mode

Infrastructure, your way

  • Storage: AWS S3, GCS, Azure Blob, Cloudflare R2, DigitalOcean Spaces, Cloudinary, MinIO
  • Email: SMTP, SendGrid, AWS SES
  • SMS / OTP: Twilio, MSG91
  • Redis & Celery local or external

Live configuration

  • Most integrations are set in the admin panel, stored in one config document
  • Feature and module toggles
  • Min order value and max delivery distance
  • Support contacts and social links

Business model

Marketplace or inventory, chosen per restaurant

Marketplace

Independent restaurants run their own menu and staff as owner-sellers and pay the commission you negotiate. Think Uber Eats or Zomato.

Inventory

A store manager runs company-owned locations directly. Suited to a single brand or cloud-kitchen chain.

Tech stack & deployment

Modern, documented, and yours to host

Run the supporting services with Docker Compose, or follow the Azure guide for production.

Server

Python 3.13FastAPIMongoDB / BeanieRedisCeleryQdrantLangGraph

Web

Next.js 16React 19Tailwind 4next-intlLeaflet

Mobile

Expo SDK 57React NativeNativeWindexpo-router

Services

Firebase Realtime DBGoogle Maps / RoutesDockerAzure guide

Honest status

Exactly what works today

We list what is finished and what is not, so you can plan your launch with no surprises.

Ready today

  • Ordering, dispatch, tracking, OTP delivery
  • Razorpay, Stripe, PayPal, cash, wallet
  • Coupons, gift cards, reviews, table booking
  • Region, restaurant and menu management
  • Rider and staff apps

Basic or in progress

  • Rider earnings, payouts and ratings screens (placeholders)
  • Orders and reviews tabs in the seller panel
  • Refunds and abandoned-order cleanup
  • Push notifications (rider offers arrive while the app is open)

Not included

  • Grocery and pharmacy modules (food delivery only)
  • Analytics dashboards and reports
  • Admin panel translations (English only)
  • Hosting and app-store publishing

FAQ

Before you buy

What do I get when I buy?+

The full source code for the backend, admin & seller web, customer web, rider app and staff app, plus setup and deployment documentation.

Which payment gateways work?+

Razorpay, Stripe and PayPal, as well as cash on delivery and wallet. You pick the active gateway in the admin panel.

Do I need technical skills?+

You need someone comfortable deploying a web app with Docker. Most integrations (email, SMS, storage, payments, maps) are entered in the admin panel rather than code.

Can I run it in my country and language?+

Yes. Set currency, timezone and enabled languages in settings. The customer site ships in English, Spanish and Arabic with right-to-left support.

Will it work for groceries or pharmacy?+

Not yet. The template is built for restaurant food delivery.