Restaurant POS
A Java Swing desktop app for taking orders, calculating bills, and producing local sales reports. It began as a Grade 11 programming project, and this version is a later revival with a clearer structure.
Project Lead & Lead Programmer · 2023–2024
- Built with
- Java 21SwingFlatLaf + MigLayoutSQLiteFlywayHikariCPBCryptMavenJPackage
The problem
My Grade 11 POS project tangled Swing screens, business rules, and raw SQL with no schema migrations, access control, or reliable link between checkout and reports. It needed clean engineering boundaries without turning a single-terminal desktop app into a fake distributed system.
The approach
Led the original school project and later completed the full Java 21 refactor. I separated FlatLaf and MigLayout Swing views from domain types like a Money value object for exact subtotal, discount, and VAT math, then layered services over SQLite JDBC repositories with HikariCP pooling and Flyway versioned migrations.
Admin and Cashier role checks live in the service layer rather than only hiding Swing buttons. Auth uses BCrypt (cost 12) with constant-time dummy checks for unknown users, per-username rate limiting, timed lockouts, and audit logs. The executive dashboard and CSV, Excel, and PDF exports read from the same transaction tables, alongside ESC/POS thermal receipts, 86’d menu toggles, one-click SQLite backups, and JPackage builds with a bundled JRE.
The results
Shipped as a self-contained desktop POS with a native Windows .exe installer, Linux and macOS launch scripts, and unit-tested service layers. It handles dine-in and take-out ordering, billing, menu management, role-based access, audit logs, and sales exports from one local database.