Case study
Lotus POS
A cloud point-of-sale platform for an arena and restaurant group in Phuket. Tills that keep selling when the internet drops, waiter phones, a back-office for menus, halls, stock and staff, and tax documents that follow Thai rules.

A till builtfor a busy night
Waiters, bartenders and cashiers work from the same app on a Windows till, a tablet or a phone. Hover a moment to watch it.
- roles with 159 permissions
- 15
- services, each with its own database
- 6
- unit tests
- ~600
- checks in the end-to-end smoke run
- 1,200

Pre-check and pay Cash with change, card, an online QR, part payments; the receipt number comes from the till’s own series.

Split and move Split by guest or by line, move or merge bills, drag guests between tables on the plan.

Close the shift X and Z reports, a cash count with shortage or surplus, open orders carried over with approval.

Event mode During a show the till takes the arena’s prepaid bracelets: scan, check the balance, pay.
- One React app runs in the browser, on waiter phones and inside a Windows till built with Electron
- PIN login with argon2id, a lock after idle time, manager approval for voids, discounts and "on the house"
- The hall plan uses the same drawings as the back-office editor, with live table states
- Kitchen and bar tickets print per workshop on network printers, with a backup printer and the cash drawer
- Kiosk mode with a watchdog, signed automatic updates, and a device key protected by the OS
- Event mode: during a concert the till takes payments from the arena’s prepaid bracelets


Waiter phones
The same app on a phone: tables, guests, the menu as a sheet and “To kitchen”. A phone pairs with a till by QR and prints through it.
Still sellingwhen the internet isn’t
A full arena cannot wait for a router. The till keeps a journal of every action and syncs it back, either through a main till on the venue network or on its own. Switch the mode to see what talks to what.
Online. Every till and waiter phone talks to the cloud directly: orders, locks and receipts sync in real time over a WebSocket.
Main till. When the internet drops, tills find a main till on the venue network and keep working through it; it journals the point and syncs with the cloud later.
Standalone. A till on its own still sells: PIN login, shifts, splits, refunds and receipts from its own series, all written to a local journal and replayed when the link is back.

Receipts thetax office accepts
Thai tax invoices have rules about numbering, VAT and branches. The documents follow the client’s sample line for line, and the cloud makes sure no number is ever skipped.
- Abbreviated and full tax invoices, credit notes and receipts, in the layout of the client’s sample
- Document numbers come from each till’s own series; the cloud checks continuity
- Service charge on or off per network or point, on the net or gross amount, excluded per category, with VAT on top
- A4 tax invoices with Thai fonts, a tax register and VAT by month in the back-office

One back-officefor the whole network
Network and points
Network → legal entities with Tax IDs → points; settings inherited and overridden per point.
Halls and devices
A hall layout editor with tables and decor, warehouses, kitchens and bars, tills and printers.
Menu and stock
Versioned recipes with FIFO cost, modifiers with per-point prices, combos, stop lists and Excel import.
Access
Invitations, scoped grants, a role and permission matrix, mandatory 2FA, step-up for risky actions and journals.
Reports
Sales, items (ABC), staff, discounts, cash, food and bar cost, events, and a pivot report builder.
Events
An event calendar with temporary, 2FA-protected report access for organisers.

Back-office hall layout editor (Russian interface)

Back-office reports dashboard (Russian interface)
Multi-tenantfrom the first table
Built as a platform for a whole restaurant network, so isolation, access and auditability were designed in from day one rather than added later.
- NestJS services over gRPC, each with its own PostgreSQL database; an HTTP gateway that never touches data
- Row-level security on every table, with separate database roles for tenants, background jobs and migrations
- Access tokens signed with Ed25519 for ten minutes, permissions checked per request, internal calls signed too
- An outbox written in the same transaction, and append-only event tables enforced by triggers
- A device protocol: sectioned sync with cursors and hashes, heartbeats with clock checks, WebSocket updates and idempotent commands
- Every push to the development branch builds, migrates and deploys the test server automatically
- Devices Windows tills, browser tills, waiter phones and the back-office
- Gateway Access checks, sync and WebSocket updates; never touches data
- Services Organisations, identity, sales, catalog, inventory, notifications over gRPC
- Data A PostgreSQL database per service with row-level security
Around the till
Ticket payments
Thai QR and PromptPay for the venue’s ticket sales through a payment service we built, plus recovery for payments that arrive after an order failed.
Native ticket app
Android in Kotlin and Compose, iOS in Swift and SwiftUI: events, seating plans, checkout and tickets with QR, in five languages.
Platform
- NestJS
- gRPC
- Nx
- pnpm
- Prisma 7
- PostgreSQL 16
Security
- Row-level security
- Ed25519
- argon2id
- TOTP 2FA
Apps
- React 19
- Vite
- Tailwind
- Electron
- PWA
Devices
- ESC/POS printing
- WebSocket
- Offline journal
- Kiosk mode
Mobile
- Kotlin
- Jetpack Compose
- Swift
- SwiftUI
Running venuesor restaurants?
Point of sale, stock and reporting that keep working on the busiest night. Tell us about yours.