Les Bonnes Affaires
A till, a back office and a shop window for a neighbourhood grocery.
Web · Windows

Till 
Public website 
Back office 
Barcode labels 
Receipt designer 
Till setup 
Product catalogue
A small shop runs on its counter. Each sale has to be quick to scan, priced with the right promotion and taken from the batch that expires first, then printed on a receipt. The owner needs the day’s takings, what is about to expire and what to reorder without standing at the till.
StyloTech designed and built the whole system: the till, the back office, the public website, the Supabase database and its business rules, and a Windows till setup that installs the printer drivers and a small helper so the browser can print receipts and labels directly and open the cash drawer.
- Point of sale
- Back office
- Management
- Website
- Web
- Windows
- Web client
- React
- TypeScript
- Vite
- Tailwind CSS
- TanStack Query
- Zustand
- Backend
- Supabase
- PostgreSQL
- Row Level Security
- Postgres RPC
- pg_cron
- Infrastructure
- ESC/POS
- TSPL
- Till helper
- Installable web app
- cPanel
- Quality & delivery
- Vitest
- ESLint
- UI/UX design
- Technical architecture
- Frontend development
- Backend development
- Database design
- Integrations
- Deployment
What it does
Each part was built for a real job on the day, not for a feature list. The product’s own site walks through them in full.
Scan-and-go till
The barcode scanner works in keyboard mode, so a scan lands anywhere on screen. Weighed items by kg or lb, keyboard shortcuts, held sales, and cash or Juice payments.
Receipts and cash drawer
Receipts print straight to the 58 or 80 mm thermal printer after each sale, and cash sales open the drawer through the printer.
Barcode labels
Generate EAN-13 barcodes and print one, two or three labels across each sheet on the label printer, with or without the price.
Stock and expiry
Batches sell first-expiry-first-out, and the back office flags what to move to the front, discount or take off the shelf.
Promotions
Price cuts and buy-X-get-Y-free deals apply automatically at the till and show on the receipt as savings.
Public catalogue
A browse-only bilingual website with categories, offers, opening hours and directions, fed from the same product data.
Engineering detail
Taken from the project source, not from marketing material.
- Sale integrity
- One PostgreSQL function records each sale in a single transaction, from promotion pricing and batch allocation with row locks to stock movements and the receipt number, with an idempotency key so a retry never creates a second sale.
- Device printing
- Receipts are rendered to a monochrome bitmap and sent as ESC/POS, labels as TSPL. A local till helper passes them to the USB printers and opens the cash drawer.
- Access
- Every write goes through a role-checked database function. Tables stay read-only behind row-level security, and visitors only see published products, without cost or supplier.
- Tested rules
- Pricing, promotions, expiry stages, EAN-13 and the printer command builders are covered by Vitest unit tests.
A till, a back office and a shop window for a neighbourhood grocery.
