Full-Stack2026Empfohlen

Buddy's Hangout

Café-Bestell- & Betriebssystem

rohith-a.me/projects/proj-15
Buddy's Hangout – Café-Bestell- & Betriebssystem screenshot 1 of 1
01

Die Herausforderung

Ein Nachbarschaftscafé nimmt Bestellungen, Tischreservierungen und Event-Anfragen über Theke, Telefon und Chat entgegen – ohne zentrale Übersicht für Küche und Service.

02

Der Ansatz

Entwicklung einer Mobile-First Next.js 15 App-Router-Plattform auf MongoDB/Mongoose mit Zod-Validierung. Tisch-QR-Codes öffnen das Menü mit vorausgewähltem Tisch; Preise werden serverseitig neu berechnet; Personal meldet sich per HMAC-signiertem HTTP-only-Cookie an; Bilder werden in MongoDB mit unveränderlichem Caching gespeichert.

03

Das Ergebnis

Gäste bestellen Dine-in oder Takeaway, zahlen vor Ort oder per UPI, verfolgen Bestellungen live und reservieren Tische. Das Team nutzt acht Back-of-House-Bereiche inkl. Küchen-Board mit Signalton, Menü-Studio, QR-Druck und CSV-Export.

Systemdesign

So ist Buddy's Hangout aufgebaut

Die technische Architekturbeschreibung ist auf Englisch.

One Next.js 15 App Router deployment serves both the guest site and the back of house. Guests order through validated, rate-limited API routes that re-price everything from MongoDB; staff screens are server-rendered behind a signed cookie and refresh by polling, so the whole system runs on serverless functions with no socket server.

back-of-house sections
8
Mongoose models
9
rate-limited public endpoints
6
signed staff session, extendable
12 h

01 · Clients

client

Guests

table QR or website

client

Staff

kitchen, floor, owner

02 · Next.js routes

gateway

Public API routes

Zod

orders, bookings, tracking

gateway

Admin pages & API

RSC

HMAC cookie checked per request

03 · Domain

service

Rate limiter

sliding window per IP

service

Order pricing

DB prices, available items only

service

QR generator

PNG and SVG per table

04 · Data

database

MongoDB

Atlas · Mongoose 8

9 collections

object store

Media collection

image bytes, 4 MB cap

clientgatewayservicedatabaseobject store

11 connections

  • Guests→Public API routesHTTPS
  • Staff→Admin pages & APIHTTPS
  • Public API routes→Rate limiter
  • Public API routes→Order pricingnew order
  • Order pricing→MongoDB
  • Public API routes→MongoDBbookings, enquiries
  • Admin pages & API→MongoDBstatus, menu, tables
  • Admin pages & API→QR generator
  • Admin pages & API→Media collectionupload
  • Staff→Admin pages & APIpoll every 8 s · async
  • Guests→Public API routestrack every 15 s · async

Request flow · A guest orders from table T05

  1. 1Scanning the table’s QR code opens the menu with ?table=T05, and the table is remembered for checkout.
  2. 2Checkout posts item ids and quantities only. The route checks the rate limit and validates the body with Zod.
  3. 3Prices are looked up from available menu items in MongoDB, so the total the client shows is never trusted.
  4. 4The kitchen board picks the order up on its next poll and chimes; staff move it from received to ready.
  5. 5The guest’s tracking page re-checks every 15 seconds until the order is completed.

Design decisions

The server owns the price
Orders carry ids and quantities; the subtotal is computed from database prices and unavailable dishes are refused.
Images in the database
Vercel’s filesystem is read-only, so uploads are stored as bytes in MongoDB and served with a one-year immutable cache header.
Tracking needs the phone too
Order numbers are time-based and guessable, so tracking requires the checkout phone number and answers a wrong guess the same as a missing order.
UPI is verified by people
A UPI reference submitted by a guest only flags the order; staff mark it paid after checking the cafe’s own account.

Trade-offs & known limits

  • The rate limiter lives in each function’s memory, so limits are per instance rather than global across Vercel.
  • Staff screens poll instead of holding a live connection, so a new order can take up to 8 seconds to appear.
  • No payment gateway or outgoing email or SMS; guests are confirmed by call or WhatsApp from the admin panel.

Haben Sie etwas Ähnliches vor?

Ich bin offen für Freelance- und Vertragsprojekte – lassen Sie uns über Ihr Vorhaben sprechen.