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.
- 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.
- 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.
- 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.
From menu management to pickup
Restaurant operators manage their profile and menu. Paid orders appear in the restaurant dashboard, where operators update order status and mark orders ready for riders.
From nearby offer to completed delivery
Verified riders can go available, receive nearby order offers, accept an order, and update delivery status. While navigating an active delivery, the rider map can send location updates to the customer.
Review restaurant and rider profiles
Admins see pending restaurant and rider profiles in a dedicated dashboard. Verification endpoints use authentication and an admin role check.
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.