Food delivery platform

ZWIGATO

One order crosses four workflows. ZWIGATO connects customers, restaurants, riders, and admins through a React frontend and Node.js microservices.

How orders move

RabbitMQ moves business events between services. Socket.IO carries updates to connected dashboards and the customer’s order view.

  1. RabbitMQ

    Payment confirmed

    After Razorpay or Stripe verification, the payment service publishes PAYMENT_SUCCESS. The restaurant service marks the order paid and placed, then sends a new-order notification to the restaurant’s Socket.IO room.

  2. RabbitMQ

    Ready for pickup

    When the restaurant marks the order ready, it publishes ORDER_READY_FOR_RIDER. The rider service queries MongoDB for nearby verified, available riders and sends an offer to each rider’s room.

  3. Socket.IO

    Delivery in progress

    Rider assignment and order status changes reach the relevant user and restaurant rooms. The customer’s order map listens for rider location updates during delivery.

Four roles

Google sign-in establishes identity. JWT-authenticated routes and sockets, together with role checks, support distinct workflows in the React and TypeScript frontend.

From restaurant discovery to delivery tracking

Customers browse restaurants and menus, manage a cart and delivery address, and check out with Razorpay or Stripe. The order view shows status and rider location updates.

Service boundaries

Node.js microservices
Auth, Restaurant, Rider, Admin, Realtime, and Utils have separate entry points. The Utils service handles Razorpay and Stripe checkout and verification.
MongoDB
Stores application records including users, restaurants, carts, orders, and rider profiles. The rider service uses geospatial queries for nearby dispatch.
Docker
Service Dockerfiles define the container packaging for the Node.js services.