The problem
The cafe behind my college was jammed every lunch break, with one counter and one queue for every order. The bottleneck was not the kitchen, it was students standing in line to say what they wanted.
I pitched the owner on replacing the line with a phone in every student’s hand, then built and shipped the whole system myself: menu to kitchen to payment to handoff, with nothing bolted on from a third-party ordering platform.
How it works
Order
A QR code on the table opens the menu in the browser, no app install. Items, variants and add-ons are configured in an admin panel, with per-order price snapshots so a later menu change never rewrites a past receipt.
Sign in
A phone sign-in: Firebase texts a one-time code, and requests for one are rate-limited to 3 per phone-and-IP pair in a 5-minute window. Once signed in, a 7-day httpOnly cookie keeps a regular signed in between visits.
Pay
Razorpay checkout online, or cash at the counter.
Track
The order screen holds open a Server-Sent Events stream. The server polls the order every 1.5 seconds and sends it only when it has changed, with Web Push as a fallback so a closed tab still gets notified when the order is ready.
Behind the counter
The kitchen side got the same amount of attention as the ordering flow: a kanban board for incoming orders, a walk-in POS for the counter when a customer skips the QR code entirely, coupon codes with per-order minimums and usage caps, and a sales dashboard the owner can filter by day, week or month to see cash versus online split.
Result
- 21 daysFirst commit to live domain
- 195Commits shipped solo, requirements to handoff
What I would change next
Order status updates by polling the database every 1.5 seconds and diffing the result before pushing. It works, and it is honest about what SSE on a serverless platform can do without a persistent backend, but a proper LISTEN/NOTIFY channel or a queue would replace the poll with an actual push and cut the delay further.
Visit Bunny’s CafeAll projects
Next case study
nekopet
Open source · solo build
A desktop pet for Wayland, in Rust. It speaks wlr-layer-shell directly, and its eyes follow the cursor.
868Lines of Rust, one native binary
