Hospitality POS / Case 03
Mirador de la Quintana.
A custom point-of-sale and invoicing program for the Mirador de la Quintana bar and restaurant: bar and dining-room POS, orders from staff phones, menu, cash closing, stock, margins and quarterly VAT. For Windows, in Catalan and Spanish, and it works without internet.

- lines of JavaScript
- ~9,400
- automated tests
- 88
- logic modules
- 25
- languages (ca / es)
- 2
- internet calls
- 0
- .exe installer
- Windows


01 / Context
The starting point.
A bar and restaurant with a terrace, indoor tables and a bar needs to charge quickly, send orders to the kitchen and bar, balance the till every day and hand the quarter’s figures to the accountant. And it all has to keep working even if the internet goes down.
02 / My contribution
From analysis to practice.
Designed and built single-handedly, from the visual prototype to the Windows installer: business logic, database, interface, the server for staff phones and automated tests.
Prototype first
Design the app with the venue’s look and compare every screen with the prototype, screenshot by screenshot.
Separate, tested logic
Amounts, VAT, documents and closings live apart from the interface and are covered by tests.
Built for daily service
PIN roles for waiter, manager and owner, auto-start and encrypted backups.
03 / Scope
What it solves.
From the order at the table to the end of the quarter.
Bar and dining-room POS
Tables by area (terrace, indoor, bar), direct sales, best sellers, options with surcharges, pre-bill and payment with change.
Value: Charge in seconds.
Orders from the phone
Waiters register with a QR code and order at the table. The order reaches the kitchen or bar and the POS updates live, only within the venue’s network.
Value: Fewer trips to the bar and no note-taking mistakes.
Fiscal documents
Receipts, invoices, corrective invoices and duplicates with numbering and a chained SHA-256 hash. The database blocks editing or deleting issued documents and Z closings.
Value: Tamper-proof records from the first receipt.
Editable menu
Editor with a live preview, reusable option groups, price history, percentage price rises and CSV import and export.
Value: The owner updates the menu without help.
Cash, stock and margins
Float, cash in and out, X and Z closings with cash count. Stock per ingredient from delivery notes and recipes, and margins with an alert when a supplier raises prices.
Value: Know what each dish earns.
Quarter and VAT
Output and input VAT, a draft of the Spanish form 303, ledgers and Excel and PDF exports for the accountant.
Value: The quarter ready without redoing the sums.
04 / Outcome
What it delivers.
A complete program for the venue’s daily work, from the order at the table to the end of the quarter, with a Windows 10 installer.
- Works offline: no network calls, and data is stored on the PC itself.
- Bilingual: screens and receipts in Catalan and Spanish.
- Branding per venue: the design lives in a theme, so another bar only needs its own theme.
- Ready to grow: a multi-venue structure prepared for future syncing.
Members app
Next to the Mirador there is a sports area and a park, so the bar is a meeting point for many people in the neighbourhood. The members app aims to turn that into a community, with a member card scanned at the POS itself.
05 / Skills
What it shows.
- Desktop
- Electron with an NSIS installer and IPC limited to a closed list of operations.
- Data
- SQLite in WebAssembly (sql.js), atomic writes, triggers that protect fiscal documents, UUIDs and a change log.
- Fiscal logic
- Amounts in cents, VAT and rounding, series numbering, chained SHA-256 hash and a draft of form 303.
- Local network
- Server for staff phones with QR registration, PIN, live events (SSE) and idempotent submissions.
- Printing
- 80 mm receipts and kitchen and bar tickets in ESC/POS.
- Design
- Custom prototype, per-venue themes, bundled fonts and a dependency-free interface.
- Quality
- 88 tests with node --test, automated button and text checks, and visual comparison with the prototype.
Let's keep the conversation going