Code | Solutions

theDukanPOS Case Study: Building a Multi-Tenant POS SaaS for Shops in Pakistan

How I designed and built theDukanPOS, a multi-tenant cloud POS SaaS with a Laravel, Inertia.js and React web app, a Flutter mobile app for Android and a bilingual English and Urdu marketing site. I'm Usman Nadeem, a freelance full-stack and AI engineer in Lahore, Pakistan, with 12+ years of product work and 500+ projects delivered.

  • Multi-tenant SaaS architecture
  • Laravel + Inertia.js + React
  • Flutter mobile app, Urdu & English
theDukanPOS multi-tenant POS SaaS case study: back-office dashboard, POS billing screen, sign-in and Flutter mobile app by Usman Nadeem

Project snapshot

theDukanPOS is a ready-made POS product for Pakistani shop owners, sold as a monthly cloud subscription. I built the platform end to end: the multi-tenant back end, the web app shops use at the counter, the Flutter Android app for owners, and the English and Urdu website that brings in trial sign-ups.

ProductMulti-tenant cloud POS SaaS
IndustryRetail shops in Pakistan
PlatformsWeb app, Flutter mobile app for Android
StackLaravel, Inertia.js, React, Flutter
LanguagesUrdu and English
My roleArchitecture, back end, web and mobile apps, marketing site
Launched2026
Clients20+ shops using it

The challenge: a register, a khata notebook and a calculator

theDukanPOS English marketing website homepage, cloud POS software for shops in Pakistan

The problem

Shops run on paper and memory

Most shops in Pakistan still juggle a sales register, a khata notebook for customer credit, a calculator and a WhatsApp group with suppliers. The numbers rarely add up at the end of the day.

  • Udhaar (credit): customer balances live in a notebook, so collecting what is owed is slow and error-prone
  • Qist (installments): due dates and payments for installment sales are tracked by hand
  • Multiple branches: owners with a second outlet or a warehouse can't compare stock or sales without phoning staff
  • Language: many cashiers prefer Urdu, and most POS software is English-only

The solution: one cloud POS for every type of shop

theDukanPOS POS billing screen with barcode search, product grid, order panel, tax and Pay button

What I built

A single platform, configured per business

theDukanPOS is one SaaS platform that every shop signs up to. A kiryana store, a mobile shop, a wholesaler and a repair shop all use the same code, but each gets the modules that fit its business: retail, wholesale, installments, booking or services.

The counter bills on the web app: scan or search a barcode, build the order, apply tax and discount, and pay in a few keystrokes.

Multi-tenant architecture, explained simply

One Laravel platform serves every shop, but each shop's data sits in its own database. That is the strongest form of multi-tenant isolation.

Tenancy

Database per tenant

Every shop gets its own separate database.

  • A shop's products, sales, customers and khata live only in its own database
  • One shared codebase, so a single deploy updates every shop
  • Strong isolation that keeps one shop's data out of another's reports
Routing

Tenant resolved per request

The platform knows which shop every request belongs to.

  • Staff sign in as username@shopcode, so the right shop loads straight away
  • Each request connects to that shop's own database
  • Shop settings, receipts, tax and business mode set per tenant
Branches

Branches inside a tenant

One shop account can run several outlets or warehouses.

  • Stock, sales and purchases tracked per branch
  • Owner reports compare branches side by side
  • Same customers and khata across the whole business
Access

Staff logins and custom roles

Owners decide exactly who can do what.

  • Every staff member has their own login
  • Admins create custom roles with a permission builder
  • Activity tracked per staff login

Key features

Shaped around how Pakistani shops actually work.

Billing

Fast POS billing

Search or scan a barcode, bill in seconds, then print the receipt or share it with the customer. Barcode labels print from the same screen.

Stock

Inventory that stays accurate

Stock goes down with every sale and up with every purchase, with supplier purchases, batches and expiry where a business needs them.

Khata

Digital khata and udhaar

Credit sales are recorded against each customer, so the owner can see who owes what without searching a notebook.

Qist

Installment tracking

Installment sales with due dates and payments, and a clear view of recovery for every customer.

Reports

Reports owners act on

Sales, items, tax, gross margin, profit and loss, closings and receivables, exportable to Excel or PDF.

Branches

Multi-branch control

Manage more than one shop or warehouse from one account and compare how each branch is doing.

theDukanPOS back-office dashboard with revenue, cost of goods, transactions and daily revenue chart
Back-office dashboard: today and month-to-date at a glance
theDukanPOS operational reports: sales report with branch and date filters, totals and export to Excel or PDF
Operational reports with branch and date filters, Excel and PDF export

Flutter mobile app and a fully bilingual product

theDukanPOS Flutter mobile app: new sale screen
theDukanPOS Flutter mobile app: new sale screen

Flutter · Android

The shop in the owner's pocket

Shop owners are rarely behind the counter all day. The Flutter app for Android lets them ring up a sale, check stock and see customer balances from the same cloud account the counter uses.

  • One Flutter codebase for mobile
  • Uses the same Laravel back end and tenant as the web app
theDukanPOS Urdu marketing website, cloud POS software in Urdu

Urdu · English

Built for cashiers who prefer Urdu

The app interface runs in Urdu or English, and the marketing site is fully bilingual, with matching English and Urdu pages so shop owners can find and understand the product in the language they search in.

  • Urdu and English interface
  • Bilingual WordPress marketing site with right-to-left Urdu layouts

Results

Launched in 2026, theDukanPOS is live on the web and already used by 20+ shops in Pakistan.

Product

One platform, many businesses

Retail, wholesale, installment, booking and service businesses all run on the same codebase, so new business types are configuration and new modules, not a new product.

Operations

Paper replaced by live data

Billing, stock, khata and installments now sit in one system, so the end-of-day numbers come from records, not from a notebook and a calculator.

Growth

Fast SaaS onboarding

Shops request a free trial from the bilingual website and get their own workspace and database, with no separate install per client.

Adoption

20+ shops in year one

Launched in 2026, the platform already runs daily billing, stock and khata for 20+ shops, each on its own isolated database.

Tech stack

A stack chosen for a small team that has to ship fast and keep a live SaaS stable: Laravel for the business logic and tenancy, Inertia.js and React for a fast single-page feel without a separate API for the web app, and Flutter for the mobile app.

Back endLaravel and MySQL
Web appInertia.js with React, built with Vite
Mobile appFlutter for Android
ArchitectureMulti-tenant SaaS, database per tenant
Marketing siteWordPress and Elementor, English and Urdu

Gallery

theDukanPOS back-office dashboard

Back-office dashboard

theDukanPOS POS billing and checkout screen

POS billing screen

theDukanPOS operational sales report

Operational reports

theDukanPOS web app sign-in screen with shop code login

Web app sign-in (username@shopcode)

theDukanPOS English marketing website homepage

English marketing site

theDukanPOS Urdu marketing website homepage

Urdu marketing site

Building a SaaS like this?

See more work in the full stack developer portfolio, or pick the service closest to what you need.

Security

Vibe code security audit

Built a SaaS fast with AI tools? Find leaked keys and tenant data leaks before launch.

Vibe code security audit →

1 week

MVP in 1 week

One core flow of your SaaS, live on your domain, with idea to market in 2 weeks.

Start an MVP →

Have a POS or SaaS idea? Let's build it.

Tell me about your product, your users and where it stands. I'll come back with a plan, a realistic timeline and a custom quote.

theDukanPOS case study FAQ

What is a multi-tenant POS SaaS?

One POS platform serving many businesses (tenants) from the same codebase. In theDukanPOS each shop has its own separate database, while updates reach every shop at once.

Why Laravel, Inertia.js and React for a POS?

Laravel handles the business rules, per-tenant databases and reports reliably. Inertia.js lets React pages use Laravel's routing and controllers directly, so the counter gets a fast single-page app without maintaining a separate public API for the web app.

Why Flutter for the mobile app?

Flutter builds for Android and iOS from one codebase, which keeps a small team fast. theDukanPOS uses it for its Android app.

Can you build a similar POS or SaaS for my business?

Yes. I build multi-tenant SaaS products, POS and inventory systems, booking platforms and their mobile apps. Many start as an MVP in 1 week, with a full v1 in about 2 weeks depending on scope. See Laravel development and mobile app development.

How do we get started?

Send me a short brief through the contact form: what you want to build, who will use it and your timeline. I work remotely from Lahore, Pakistan with clients worldwide, and I reply with questions or a proposed plan and a custom quote. If you already have an AI-built app, start with a vibe code security audit.