← Back to Documentation Hub

Nexus Development

Custom Software Solutions | Bengaluru & Global

https://nexusdevelopment.in | contactus@nexusdevelopment.in

PRODUCT REQUIREMENTS DOCUMENT

Doc Ref: NX-PRD-RK-2026-02

Baseline Version: 1.0 (Production Verified)

Date: October 2026

Product Requirements Document (PRD)

System Architecture & Technical Specifications for Raku's Kitchen Ordering Engine

1. System Overview & Technical Architecture

The Raku's Kitchen Platform is built as a server-rendered, edge-optimized progressive web application using Next.js 14 App Router, backed by Google Cloud Firestore for real-time order state distribution and Firebase Authentication for frictionless phone OTP verification.

Architectural Layer Technology Selected Strategic Architectural Purpose
Frontend & Backend Next.js 14.2 (App Router), React 18, TypeScript 5.6 Unified full-stack architecture with React Server Components (RSC) and secure server action APIs.
Design & Styling Tailwind CSS 3.4 + Lucide Icons Mobile-first responsive UI tailored for high-converting smartphone shopping experiences.
Authentication Firebase Auth (Phone OTP) Zero-friction phone number authentication eliminates customer password drop-offs.
Database Cloud Firestore (NoSQL) Real-time bi-directional synchronization (onSnapshot) powering the kitchen admin console.
Payments Gateway Razorpay SDK + Server Webhooks UPI, NetBanking, and Card payments with server-side signature verification.
Maps & Geocoding Ola Maps Autocomplete & Reverse API Verified address selection and high-precision latitude/longitude coordinate capture.
Courier Automation Borzo 1-Click Business API + Porter Deep-link Instant courier booking directly from the kitchen dashboard.

2. Detailed Functional Specifications

Module 1: Catalog & Weight-Based Biryani Engine

Module 2: Cart & Server-Side Price Verification

Server-Side Trust Boundary: The client browser is treated as untrusted. Client-submitted prices are discarded. The server function recomputeOrderTotals imports the canonical menu catalog and recalculates item base prices, variant differentials, extra meat add-ons, and quantity-based packaging fees before creating the Razorpay order.

Module 3: Slot Scheduling & Operational Constraints

Module 4: Address Verification & Geolocation

Module 5: Payment Processing (Razorpay)

Module 6: Kitchen Admin Operations Dashboard (`/admin`)

3. Cloud Firestore Data Schema

Canonical JSON structure for the orders collection:

{
  "orderId": "RK-2026-1004-9842",
  "customer": {
    "name": "Arun Kumar",
    "phone": "+919876543210",
    "uid": "fb_auth_user_9921"
  },
  "slot": {
    "date": "2026-10-05",
    "meal": "lunch",
    "readyTime": "12:30 PM"
  },
  "items": [
    {
      "id": "chicken-biryani",
      "variant": "1kg",
      "quantity": 2,
      "unitPrice": 799,
      "extraMeat": 250,
      "extraMeatCost": 150
    }
  ],
  "financials": {
    "subtotal": 1898,
    "packagingFee": 40,
    "deliveryFee": 0, // Paid to courier directly
    "total": 1938
  },
  "payment": {
    "provider": "razorpay",
    "orderId": "order_PUh298hsdf",
    "paymentId": "pay_PUh3872hf",
    "status": "PAID"
  },
  "delivery": {
    "address": "42, 2nd Cross, Jambusavari Dinne, JP Nagar 8th Phase",
    "lat": 12.8712,
    "lng": 77.5814,
    "provider": "borzo",
    "trackingId": "BORZO-99214-BLR"
  },
  "status": "Confirmed",
  "createdAt": "2026-10-04T12:30:00Z"
}

4. Non-Functional & Security Requirements

Document Sign-off: This Product Requirements Document forms the certified technical baseline for Raku's Kitchen platform developed by Nexus Development. All described modules are built, verified, and scheduled for public Go-Live 20 calendar days following client signature execution.