[02] Case study · POS · Franchise CRM

Laundrify: a franchise POS and CRM

Billing, garment tracking and customer updates for every store of a laundry franchise.

Role
Software developer at Tests & Funnels. I built the billing core, the API, the POS screens and the hardware integration.
Industry
Retail services
Stack
React, TypeScript, Node.js, MongoDB, BullMQ, Web Audio API
Live
Open the live demo (new tab)
Laundrify POS dashboard with revenue, outstanding amount, order status and the delivery plan, built by Shiv Sagar Kumar Sinha, full stack MERN developer
Laundrify POS dashboard with revenue, outstanding amount, order status and the delivery plan

01The problem

A multi-store laundry franchise needed one system for billing, garment tracking and customer updates across every store.

02What it had to do

  • Billing totals that never drift by a paisa.
  • Invoice numbers with no gaps, per store, for GST.
  • No double charge when the network flickers and a request is retried.
  • Every garment traceable from drop-off to pickup, and customers told when it is ready.

03What I built

Per-garment barcode tagging linked to billing, GST-correct invoices with per-store GSTINs, WhatsApp "order ready" alerts, role-based access and an analytics dashboard.

04Architecture

  1. POS / CRMReact + TypeScriptCounter screens, barcode scanning and Web Audio scan feedback.
  2. APINode.jsBilling core with idempotency-key middleware and TTL cache.
  3. DataMongoDBInteger-paise amounts, price snapshots and atomic invoice counters.
  4. JobsBullMQWhatsApp notifications sent from a queue, behind a swappable provider.

05Engineering decisions

  1. 01Integer-paise ledger

    Challenge
    Floating-point money drifts (0.1 + 0.2 is not 0.3), and price changes must not rewrite old bills.
    Decision
    All money stored as integer paise with atomic updates; prices snapshotted at order time.
    Why
    Totals are exact and an invoice from last month still says what the customer paid.
  2. 02Gapless invoice numbers

    Challenge
    Counting documents to get the next number breaks when two counters bill at once.
    Decision
    Atomic counters per store instead of countDocuments.
    Why
    No duplicates and no gaps, which GST invoices need.
  3. 03Idempotent payments

    Challenge
    A flaky network makes the app retry, and a retry must not charge twice.
    Decision
    Custom idempotency-key middleware with a TTL cache returns the first result for a repeated key.
    Why
    A double tap or a retry is safe by design.
  4. 04Queue-based notifications

    Challenge
    A slow messaging provider should never block the billing counter.
    Decision
    WhatsApp alerts go through a BullMQ queue behind a NotificationProvider interface.
    Why
    Checkout stays fast, and the provider can be swapped without touching billing.
  5. 05Hardware at the counter

    Challenge
    Staff tag and scan garments all day.
    Decision
    USB and Bluetooth barcode scanners with thermal tags, plus Web Audio feedback on every scan.
    Why
    Staff hear a successful scan without looking at the screen.

06Security

  • Role-based access
  • Per-store data scoping
  • Idempotency keys on payment routes

07Outcome

  • Exact integer billing with per-store GSTINs
  • Gapless invoice numbering
  • Retry-safe payments
  • Live demo on Render

Want this kind of engineering on your team?