Courses / Frontend System Design, with JavaScript Foundations / Chapter 19
Module 8 · Design Problems: Chat, Rides and Calendar · Chapter 19 of 21
Design a Ride-Hailing App
Builds on Frontend Fundamentals: Components, State, Data and Rendering, Performance and Optimisation, API Styles, Protocols and Data Formats, A Step-by-Step Method for Frontend Design Sessions and Design a Chat Application. Next up: Design a Calendar Application.
Part 1 · Requirements and scope
What the rider can do
A ride-hailing app is a map, a moving dot and a button that has to work on a phone in a moving car. This chapter designs the rider's web app, following the seven steps of the method chapter.
Step one lists what a rider can do. The functional requirements for this design are these.
- Enter a pickup and a drop point and see a fare estimate before asking for anything.
- Request a ride and wait while the server looks for a driver.
- See the driver, the car and the time to arrival, and follow the car on a map as it comes.
- See the state of the trip as it moves from pickup to drop-off.
- Cancel while the driver is still on the way.
Out of scope, said aloud: the driver's app, the matching of riders to drivers, route and fare calculation, payment, ratings, and the map engine itself. The server owns matching and routing, which are a system design problem of their own. The client's job is to show what the server says, quickly and truthfully, on a poor network.