Client project · Ref. CW-13

Les Bonnes Affaires

A till, a back office and a shop window for a neighbourhood grocery.

Platforms

Web · Windows

  • The Les Bonnes Affaires till with a scanned basket, promotion savings, a cash payment and the change due.
    Till
  • The public website homepage with opening hours and this week’s offers.
    Public website
  • The owner’s dashboard with expiry actions, today’s sales and profit, recent receipts and a seven-day sales chart.
    Back office
  • Barcode label sheets for a product, previewed at actual size before they go to the label printer.
    Barcode labels
  • The receipt designer with paper width, section order and a live 80 mm thermal receipt preview.
    Receipt designer
  • The till computer setup guide covering the printers, the till helper, the cash drawer and the installable till app.
    Till setup
  • The public product catalogue with categories, search and prices.
    Product catalogue
Screens from a demo build running in the browser with invented products, sales and staff. Product photos are placeholders generated for the captures.

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’s role

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.

Product sitebonnesaffaires.net
Project type
  • Point of sale
  • Back office
  • Management
  • Website
Platforms
  • Web
  • Windows
Built with
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
What StyloTech delivered
  • 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.

01

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.

02

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.

03

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.

04

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.

05

Promotions

Price cuts and buy-X-get-Y-free deals apply automatically at the till and show on the receipt as savings.

06

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.

Les Bonnes Affaires — Client project — StyloTech