Skip to content
All work

Case study

MenuMate

A web app where restaurants build their menu, put a QR code on each table and receive guests’ orders on a live dashboard. Guests order from their phones without an app and pay the restaurant directly.

Role
Sole designer and developer
Type
Independent product
Timeline
2025 – today
Status
Live, free today
  • Next.js
  • TypeScript
  • Supabase
  • PostgreSQL
  • Tailwind CSS
Illustration of a café table seen from above: shakshuka, a coffee, a QR code card and a phone showing the menu, with the order ticket on its way to the restaurant.

Why I built it

Restaurant owners want a menu guests can read on their phones and staff can change themselves, plus orders from every table, without asking guests to install an app.

I designed, built and launched MenuMate alone: the database and its access rules, the API routes, the guest menu and its themes, the owner dashboard, the emails and the printable QR sheets.

Built for Tunisia

  • Stripe isn’t available in Tunisia and local gateways don’t offer recurring billing, so in September 2026 I removed the billing screens and opened MenuMate for free. It doesn’t take guests’ payments: guests pay the restaurant the way they already do.
  • The Tunisian dinar has three decimal places, so prices and totals are stored and shown with three decimals.
  • I work on it alone and part-time, next to contract work.

How it works

MenuMate is a Next.js app (App Router, TypeScript) on Vercel, with Supabase for Postgres, sign-in, realtime updates and file storage.

Each restaurant’s menu is rendered on the server at its own URL, in one of three themes. A small loader downloads only the theme the restaurant picked, so a menu doesn’t carry every theme’s CSS.

When a guest sends an order, an API route checks the restaurant, the table, the items and their prices, then calls a Postgres function that saves the order with its items. The dashboard listens on a realtime channel for that restaurant and falls back to polling every 60 seconds if the connection drops.

One account can run several restaurants, each with its own menus, orders and staff. Row-level security keeps each restaurant’s data apart, and each owner’s images sit in their own storage folder. QR codes are made in the browser, printable menus and QR sheets are PDFs, and the app is in English and French.

The empty ticket bug

Orders used to be saved in two requests: first the order, then its items. The dashboard picks up new orders in real time, so it could get the order before its items existed and show the kitchen an empty ticket. A failure between the two requests also left orders with no items.

I moved order creation into one Postgres function that saves the order and its items in a single transaction. The guest’s browser picks the order id, so if a request is retried, the function returns the order it already saved instead of sending the kitchen a duplicate. The cost is that this logic now lives in SQL, in a migration, and not in the TypeScript route.

Testing

  • A SQL script runs 11 checks that one restaurant can’t read or change another restaurant’s data, against a local database, and rolls everything back afterwards.
  • Money formatting and arithmetic have assertion tests, including three-decimal dinar amounts.
  • Most API routes check their input with zod. The order route checks ids, the table, prices and a 25-item cap, and limits each client to 10 orders a minute per restaurant.
  • Not done yet: there is no CI pipeline and no end-to-end browser tests. The test scripts run by hand.

Try it

MenuMate is live and free today. Owners can sign up, build a menu, pick a theme, print table QR codes and take orders on the live dashboard. A demo restaurant’s menu is public, so you can try the guest side.

The screenshots below show the demo menu on a phone and the live orders board with a test order. The code is in a private repository.

MenuMate’s public demo menu on a phone: Tunisian starters with prices in dinars and the order bar at the bottom. (full-size image, opens in a new tab)
The public demo menu on a phone. Guests add dishes and send the order from their table.
MenuMate dashboard showing the live orders board, with a new order from table 1 in a test café. (full-size image, opens in a new tab)
Live orders board in a test café. New orders appear here without a page reload.

More case studies