Building Vayu: a ride-hailing app with Flutter, Node.js and Socket.IO
By Prince Bhakodiya· 2 min read
In short
Vayu is a ride-hailing platform I built with Flutter for the rider and driver apps and Node.js, MongoDB and Socket.IO on the backend. It matches riders with nearby drivers in real time, streams live GPS location over sockets, handles wallet and gateway payments, verifies rides with an OTP and runs across multiple cities from one admin panel.
The problem
A ride-hailing product is really three products that have to agree with each other every second: the rider app, the driver app and the operations team behind them. A booking only feels instant if location, driver status and trip state stay in sync across all three, even on patchy mobile networks.
What I built
- A rider app to book autos and cabs, see the fare up front and track the driver live.
- A driver app to go online, accept rides, navigate and get paid.
- An admin panel to run cities, drivers, pricing and support.
- Backend APIs behind all three, split into ride, payment and socket services.
How real-time matching works
When a rider requests a trip, the ride service looks for online drivers near the pickup point and offers the ride to them. Drivers push their location over a persistent Socket.IO connection, so the server always has a fresh picture of who is available and where. The moment a driver accepts, both apps move into the same trip room and every status change (arriving, started, completed) is broadcast to both sides instead of being polled.
Safety and payments
Every trip starts with an OTP that the rider shares with the driver, which stops the wrong person getting into the wrong vehicle. Riders can pay from an in-app wallet or through the payment gateway, and the payment service settles the fare once the trip closes.
Running more than one city
Cities are data, not code. Service areas, vehicle types and pricing are configured per city in the admin panel, so launching somewhere new is an operations task rather than a release.
What I would tell anyone building a ride app
- Design the trip as a state machine first; the UI on both apps is just a view of that state.
- Expect sockets to drop. Reconnect quietly and re-sync the current trip from the API.
- Keep location updates small and frequent, and stop sending them when the driver is offline to save battery.
I used the same foundations again for Gogogo. If you need something similar, see how I work as a Flutter developer in Ahmedabad.
Vayu RideSee features, stack and store linksFrequently asked questions
What tech stack does the Vayu ride-hailing app use?
+
Flutter for the rider and driver apps, Node.js for the backend APIs, MongoDB for data, Socket.IO for real-time location and trip updates, and AWS for hosting.
How does Vayu track drivers in real time?
+
Driver apps stream their GPS location over a persistent Socket.IO connection. The server keeps the latest position of every online driver and broadcasts trip updates to the rider and driver in the same trip room.
Keep reading
How to hire a Flutter developer in Ahmedabad: a practical checklist
What to check before hiring a Flutter app developer in Ahmedabad or anywhere in India: shipped apps, backend skills, real-time experience, communication and ownership.
Lessons from building real-time apps with Socket.IO and Node.js
What ride-hailing and crypto trading apps taught me about real-time systems: what belongs on sockets, reconnecting gracefully, rooms, scaling with Redis and saving battery.
Flutter or native for a startup app? How I decide
When Flutter is the right choice for a startup's Android and iOS app, when native makes more sense, and the questions I ask before choosing.