Get in touch

info@sokhengich.com
Restaurant TechMobile + WebOffline-first

Bong POS

A multi-tenant point-of-sale system for cafés and restaurants in Cambodia. It works offline, across branches, in two currencies.

Offline-Ready Ordering
100%
Currencies (USD + KHR)
2
Bong POS
View Image

Project Overview

Bong POS runs the daily work of a café or restaurant across every branch: orders at the counter or from a waiter's phone, receipts and cup labels, the cash drawer, and reports for the owner. It's a SaaS platform. A platform owner sets up each business with its own branches, staff roles, subscription and licensed devices, and each shop's data is kept separate from every other shop's. Bong POS is part of the Bong platform, and guest orders come in from Bong Menu.
Role
Lead Engineer (Architecture, Backend API & DevOps)
Stack
NestJS, PostgreSQL
Year
2026

Solving Real Friction

The Friction

Prices That Change by Channel and Branch: The same latte cost one price at the counter, another on Grab and a third at the airport branch. Owners kept separate price lists and cashiers guessed.

The Engineering

A layered price resolver where the most specific price wins: branch + channel, then branch, then channel, then sale price, then base price. Each branch can also stop selling individual items.

The Friction

The Internet Drops Mid-Rush: When the Wi-Fi goes down at lunch, a cloud POS stops taking orders.

The Engineering

Each terminal downloads an offline bundle: the full menu with that branch's prices already applied, plus payment settings and the exchange rate. Every offline sale carries a client-generated reference, so a retried sync never creates a duplicate order.

The Friction

Two Currencies in One Drawer: Cambodian shops take dollars and riel in the same sale, so closing the drawer meant converting by hand.

The Engineering

Shifts open and close with separate USD and KHR floats. On close, the system works out the expected cash per currency, including cash-in/out and expenses, and shows the difference from what was counted.

The Friction

Many Phones, One Printer: With several waiter phones and one thermal printer, orders printed twice or not at all.

The Engineering

Each branch registers one main device as its print station, and that device sends heartbeats. When another device takes over, the old one stops printing. Waiters get a warning when the printing device goes quiet.

The Friction

Order Numbers Nobody Could Read: Customers need a short number to call out. Accountants need a unique one. A generic POS gave neither in the shop's own format.

The Engineering

Order numbering is set per branch: prefix, date, padding, daily or monthly reset, and wrap cycles shown as numbers, letters or Roman numerals (PP-20260513-II-0001). Numbers are allocated atomically even when orders arrive at the same moment.

The Friction

Many Shops on One Platform: Hosting many businesses on shared infrastructure risks one shop seeing another's data.

The Engineering

Tenant isolation is enforced in the data layer, so every query is scoped to its business automatically. The platform owner manages clients and subscriptions but cannot read a shop's menus, orders or payments.

The Friction

Licensing Devices Without Locking Out Staff: Per-device billing has to block unlicensed tablets, but a broken tablet can't leave staff unable to work mid-shift.

The Engineering

Each subscription has a number of device slots and starts with a 14-day trial. A removed device can be reactivated when a slot is free. A broken device is swapped through an approved replacement, which retires the old one for good.

Core Architecture

Deep dive into the specialized systems engineered for this project.

Multi-Tenant Core

Tenant scoping at the database layer, plus custom roles with granular permissions for each staff member.

Layered Pricing Engine

Prices resolve by branch, channel, sale price and base price, and each branch controls which items it sells.

Offline-First Terminals

A full menu-and-payments snapshot per branch, with idempotent order sync.

Shifts & Cash Management

Dual-currency drawer sessions, cash movements, expenses and variance on close.

Payments & Promotions

QR payments, a store exchange rate, discounts and promo codes.

Print Station & Layouts

One main printing device per branch, with configurable receipt and cup-label templates.

Owner Alerts & Reports

Firebase push notifications, plus an end-of-day Telegram summary per branch sent in the shop's timezone.

Platform Console

Client onboarding, subscriptions, device billing and an activity history for the platform owner.

Archive

Visual Index

A curated selection of interface modules and design system assets (01-04).

Next Project

Bong Menu