Case Study · Android App · Flutter

DukaanDost.

An Android-first business app foundation for small Indian shops.

v0.2.0 · M1 Foundation· Hindi & English· Flutter · Riverpod · Firebase

DukaanDost is an early-stage Flutter app designed around the everyday needs of small Indian retailers. The product direction is to bring billing, inventory, customer credit (udhaar), and business reporting into one simple, bilingual app — backed by Firebase OTP sign-in, biometric security, and role-aware Firestore rules.

2 Languages (EN / HI)
5 Core App Tabs
6-digit PIN + Biometric Lock
4 Automated CI Checks

01

Product Direction

DukaanDost — Billing, Inventory, Udhaar & Reports in Hindi and English
🏪

Built for Kirana & Retail

Small Indian shopkeepers often split daily operations across paper registers, WhatsApp notes, and separate ledger apps. DukaanDost brings billing, stock, customer credit (udhaar), and reporting under one roof.

🗣️

Bilingual From Day One

Full English and Hindi support starting right at onboarding, with the option to switch languages anytime in settings — paired with bundled Inter and Noto Sans Devanagari typography for crisp rendering offline.

🔐

Security-First Foundation

Shop data is protected on-device with PIN & biometric app lock, and in the cloud with Firebase App Check, shop-membership rules, owner/staff role enforcement, and Zod validation schemas.

02

Implemented in Milestone M1

🌐

English & Hindi Support

Language selection right during onboarding, with the flexibility to switch between English and Hindi at any time from app settings.

📱

Phone-Number Sign-In

Frictionless Firebase OTP authentication tailored specifically for Indian mobile numbers, letting shopkeepers sign in without email or passwords.

🔒

Optional App Lock

A 4–6 digit PIN, device biometric unlock, escalating lockout timers after failed attempts, and automatic locking after one minute in the background.

⚙️

App Settings

Complete preferences screen with light, dark, and system theme options, language switching, PIN/biometric security controls, and clean logout.

🗂️

Five-Tab App Structure

Dedicated shell navigation across Home, Items, New Bill, Customers, and Reports, with GoRouter routing and initial screen layouts in place.

🛡️

Security & Backend Groundwork

Firestore access rules for shop membership and owner/staff roles, plus Zod validation schemas and exact money-handling helpers for billing and ledgers.

🚦

Automated CI Checks

GitHub Actions workflows covering Flutter analysis & tests, Cloud Functions checks, emulator-backed Firestore rules tests, and PR debug APK builds.

🎨

Centralized Design System

Unified Material theme with light/dark palettes and bundled Inter + Noto Sans Devanagari fonts for consistent bilingual UI.

03

Technical Highlights

📱

Flutter Client

Built with Flutter and Dart, using Riverpod for predictable reactive state management and GoRouter for declarative navigation and auth/lock guards.

FlutterDartRiverpodGoRouterMaterial 3
☁️

Firebase & Cloud Functions

Firebase Authentication, Cloud Firestore, and Firebase App Check paired with a TypeScript / Node.js Cloud Functions project, Zod schemas, and emulator rules tests.

Firebase AuthFirestoreApp CheckTypeScriptNode.jsZod
🔐

On-Device Security & Fonts

Uses encrypted local storage and hardware biometrics for app-lock credentials, plus bundled Inter and Noto Sans Devanagari fonts for reliable Hindi & English rendering.

Secure StorageBiometricsInterNoto Sans DevanagariGitHub Actions

State & Routing

Riverpod + GoRouter

Backend

TypeScript · Functions + Zod

Access Control

Owner / Staff · Firestore Rules

CI / CD

GitHub Actions · 4 automated jobs

04

Current Development Status

✅

Ready in M1 Foundation

  • Bilingual onboarding & runtime English/Hindi switching
  • Phone OTP sign-in for Indian mobile numbers
  • PIN + biometric lock with auto-lock & failed-attempt backoff
  • 5-tab navigation shell, theme controls & CI test suite
🚧

In Active Development

  • Items & Customers CRUD and inventory tracking workflows
  • New Bill creation, udhaar ledger entries & live sales figures
  • Business reports and shareable PDF receipts
  • Queued offline-write syncing for spotty shop connectivity
🧱

Backend Groundwork

  • Cloud Functions currently expose a verified health-check endpoint
  • Billing & ledger Zod schemas and money helpers are in place
  • Shop membership & role rules are tested against the Firebase emulator
📋

Transparent milestone scope. The current release is the M1 foundation milestone. The Items, New Bill, Customers, and Reports screens are present in the app, while their end-to-end business workflows (live sales figures, item/customer management, bill creation, PDF receipts, and queued offline sync) are actively being built on top of the validated schemas and security rules.

05

Download & Repository

Dukaandost.apk (v0.2.0) M1 Build ✅ Android foundation release — onboarding, Hindi/English, OTP auth, app lock & 5-tab shell Download APK
piyushkumarexe/Dukan-original GitHub Primary project source repository (Flutter app, Cloud Functions & Firestore rules) Open Repo
piyushkumarexe/DukaanDost Releases Public release channel hosting downloadable Android APK builds All Releases

Building a product for Indian businesses?

Bilingual Flutter apps, Firebase backends, role-based security, or custom business workflows — let's build something reliable together.

Work With Me