Back to selected work

PROJECT 01 / Restaurant operations

In development

DineFlow

A full-stack restaurant platform connecting QR ordering, kitchen operations and billing, with realtime updates and isolated restaurant workspaces.

Implementation overview · development continues

DineFlow restaurant dashboard with service overview and restaurant configuration

01 / THE CONTEXT

Overview

A restaurant QR ordering and management application that connects guests, service staff, the kitchen and cashiers. Restaurant owners can manage menus, tables, staff and reports in tenant-scoped workspaces.

Engineering highlights

  • Built QR ordering-to-billing flows with Next.js/NestJS, covering 6 order states for guests, kitchen and cashiers.
  • Kept guest, staff and kitchen order views consistent with Socket.IO and TanStack Query refetching after connection drops.
  • Guarded duplicate payments with PostgreSQL transactions, row locks and idempotency keys; a concurrency test asserts 2 identical requests yield 1 payment.
  • Enforced 5 staff roles with NestJS RBAC; isolated tenants via Prisma scoping and composite foreign keys.
  • Covered billing races and tenant isolation with integration tests, and checkout flows with Playwright.
  • Documented the multi-tenant design and secured team buy-in for NestJS RBAC to strengthen data isolation and access control.

02 / THE QUESTION

The problem

Restaurant workflows can become fragmented when ordering, table management and kitchen tickets live in separate tools. This project explores a coordinated approach to those interactions.

03 / THE DIRECTION

The approach

Guests order from a table QR code; staff confirm orders before the kitchen prepares them. Realtime updates connect preparation, service and billing, while owners configure the restaurant and review completed revenue.

PRODUCT IN ACTION

Product previews

Actual application screenshots · development demo data

04 / THE SCOPE

Key features

  • QR ordering
  • Restaurant POS
  • Realtime orders
  • Kitchen Display System
  • Table management
  • Payment management
  • Multi-restaurant workspaces
  • Revenue reports & staff roles

05 / THE SYSTEM

Architecture

CLIENT LAYER

Next.js frontend

QR guests, service staff, kitchen, cashiers and restaurant owners.

  • App Router
  • Responsive UI
  • Browser client
HTTPSREST + Socket.IO
APPLICATION LAYER

NestJS API

A modular, tenant-scoped backend for orders, dining sessions, billing and reports.

  • Docker / VPS
  • RBAC
  • Transactions
NESTJS DATA & INTEGRATIONS

PostgreSQL

Prisma ORM

Restaurant data, orders, sessions, payments and audit records.

S3 / MinIO

Private object storage

Menu photos and restaurant logos through the storage service.

Resend

Transactional email

Account verification and password recovery emails.

Browser clients call the API over HTTPS using REST and Socket.IO. PostgreSQL is the source of truth; realtime events follow committed changes and clients refetch after reconnecting.

Engineering challenges

  • Scoping restaurant data to authenticated memberships and handling restaurant switches across browser tabs.
  • Protecting order creation and payment recording with transactions, revision checks and idempotency keys.
  • Keeping realtime views consistent by refetching after reconnects instead of automatically replaying mutations.

Results

Implemented QR ordering, kitchen and staff workflows, billing, reports and multi-restaurant account management. These previews show the application with development demo data; production usage metrics have not been measured.

Next project / 02

The next chapter