02Restaurant · Ordering platform
Foodician
Ordering, kitchen display and rider delivery in one restaurant app
A Next.js and Supabase restaurant platform: customers order from a mobile menu and pay with Flutterwave, the kitchen sees orders arrive live on a display screen, riders pick up deliveries from their own view, and staff manage menu, orders and refunds from an admin dashboard.
A restaurant's website is usually just a menu. The real work starts after someone taps 'order': the kitchen has to see it, a rider has to collect it, the delivery fee has to make sense for where the customer lives, and someone has to handle refunds and questions. Phone calls and WhatsApp messages break down as orders grow.
- 01Customers browse the menu, add extras, save favourite items and addresses, apply promo or referral codes, and pay through Flutterwave.
- 02Delivery fees are worked out from the customer's map location: a flat rate on the UNILAG campus, otherwise a base fee plus a per-km rate.
- 03Kitchen and rider screens update instantly from Supabase Realtime, so staff never need to refresh to see new or changed orders.
- 04Admins manage the menu, extras, orders, refunds, wallets, customer chat and table QR codes; customers earn loyalty tiers.
- D-01
Realtime subscriptions instead of polling for kitchen and riders
The kitchen display and the rider view subscribe to changes on the orders table through Supabase Realtime and refetch when an order is created or updated. A new order shows up on the kitchen screen without anyone refreshing it.
Trade-offEvery screen keeps a live connection open and refetches the list on each change; simple and reliable at restaurant scale, but it would need narrower queries for high volume.
- D-02
Delivery pricing as a pure, configurable function
The fee is calculated with a haversine distance from the restaurant, using a campus flat rate and a per-km rate with free first kilometre. The rates are passed in as configuration, so staff can change them without touching the code.
Trade-offStraight-line distance is cheap and predictable but does not reflect real road routes, so some fees will be slightly off.
- D-03
Payments confirmed on the server, not trusted from the client
After checkout, a Next.js API route checks the transaction with Flutterwave's verify endpoint using the secret key stored only on the server, and only a 'successful' status counts as payment.
Trade-offCheckout needs an extra round trip, but a modified client cannot mark an order as paid.
- Delivery fees use straight-line distance rather than road routing.
- Operational figures are private unless the restaurant agrees to share them.