AW
Back to Portfolio
Production — Live on Google PlayRetail & Grocery POS Platform
Independent Product Engineer · End-to-End Production Ownership

TRASAQU

Retail & Grocery Store Management Application

TRASAQU is a production retail and grocery business management application live on Google Play. Engineered independently from product requirements through production release, it enables store owners and staff to manage product inventory, POS sales transactions, business expenses, financial reports, multi-store operations, employee role-based access, and subscriptions across an offline-first Flutter mobile application, a Cloudflare Workers + D1 + R2 serverless backend, and a companion React/TypeScript admin dashboard.

Role

Independent Product Engineer

Domain

Retail & Grocery (UMKM)

Mobile App

Flutter · Dart · Cubit

Local Persistence

Drift (SQLite) · Offline-First

Production Backend

Cloudflare Workers · TypeScript

Cloud Storage

Cloudflare D1 & R2

Subscription Billing

Google Play Billing + RTDN

Admin Dashboard

React · TypeScript · Tailwind

Status

Production — Live on Google Play

Previous Backend

NestJS (Migrated to Workers)

Future Technology Collaboration: Kōhī Labs(Planned Partner)
Lifecycle Pipeline
Independent End-to-End Ownership

FROM IDEA TO PRODUCTION ON GOOGLE PLAY

Every engineering stage—from domain research and system architecture to backend migration, CI/CD automation, and live Google Play production operations—was executed end-to-end.

01→
IDEA & RESEARCH
Retail Domain Study
02→
PRD & SCOPE
Requirements & Rules
03→
UX / UI SYSTEM
Simplified Atomic UI
04→
FLUTTER MOBILE
Cubit & Layered App
05→
OFFLINE ENGINE
Drift SQLite Queue
06→
WORKERS API
Serverless Backend
07→
D1 & R2 DATA
Relational & Object
08→
PLAY BILLING
Direct IAP & RTDN
09→
REACT ADMIN
TypeScript Backoffice
10→
CI/CD PIPELINE
GitHub Actions & QA
11→
PLAY STORE
Production — Live
12
OPERATIONS
Live Maintenance
Flutter = Mobile Operational App (Android)React + TypeScript = Web Admin Dashboard
🔍 Click image to inspect in full resolution
TRASAQU Product Showcase
Click to Zoom In / Full View
01—PRODUCT OVERVIEW & BUSINESS CONTEXT

Solving Real Operational Friction for Retail & Grocery Businesses

TRASAQU is a retail and grocery store management application designed for small and medium retail businesses (UMKM) that previously relied on paper ledgers or disconnected spreadsheets. In daily store operations, merchants face recurring challenges: untracked stock discrepancies across packaging units (cartons, packs, pieces), unrecorded cash expenses, forgotten customer credit (kasbon), lack of role separation for cashiers, and unstable store internet connectivity during peak checkout hours.

Rather than acting as a simple calculator cashier app, TRASAQU models the complete retail operational lifecycle for store owners and employees across seven core operational pillars:

1. Product Inventory
SKU catalog, multi-unit conversions, stock-in batches, and movement history.
2. Sales Transactions
Offline-first POS checkout, barcode scan, cart hold, and thermal receipt printing.
3. Business Expenses
Operational expense categorization, supplier payables, and customer receivables.
4. Financial Reports
Store revenue, COGS, gross profit margins, and cashflow summaries.
5. Multi-Store Operations
Isolated branch workspaces with instant active-store context switching.
6. Employee Accounts & RBAC
Contextual roles (Owner, Cashier, Warehouse, Finance) and permission guards.
7. Subscription Management
Free and Pro tiers managed via Google Play Billing and backend RTDN webhooks.
8. Production Distribution
Production — Live on Google Play with companion React admin backoffice.
Initial production scope intentionally focuses on Retail, Sembako, and Grocery Stores to validate core transaction, inventory, and offline synchronization patterns in real store environments before expanding to additional business verticals.
02—PRODUCT STRATEGY

Why Retail First?

Instead of attempting to support every business vertical from day one, I chose Retail and Grocery (Sembako) as the initial production domain. This provided a high-frequency operational environment to validate POS transactions, multi-unit inventory, purchasing, store-scoped permissions, financial reporting, offline persistence, and cloud synchronization before introducing other verticals with distinct workflow rules.

“Build the concrete domain first. Generalize after recurring patterns become clear.”

Generalize from proven production patterns, not speculative assumptions.

01. Focused Scope

Concrete domain rules accelerate validation with real retail store operators.

02. Zero Premature Abstraction

Avoids brittle, overly generic schemas during initial product-market fit.

03. Solid Domain Modeling

Retail ledger and inventory structures establish a strong foundation for shared platform services.

04. Real Production Feedback

Direct operational feedback from live Google Play merchants informs future vertical expansion.

03—MY ROLE & END-TO-END OWNERSHIP

Independent Engineering Ownership Across the Entire Lifecycle

As an independent product engineer, I owned the complete technical and product lifecycle of TRASAQU without a separate backend, DevOps, or QA team:

1. PRODUCT PLANNING & PRD
  • •Retail domain research & workflow mapping
  • •Product Requirements Document (PRD)
  • •Pricing & subscription tier modeling
  • •Feature prioritization & release scoping
2. ARCHITECTURE DECISIONS
  • •Semi-Clean layered Flutter architecture
  • •Simplified Atomic Design UI system
  • •NestJS → Cloudflare Workers migration
  • •Store-scoped multi-tenant RBAC model
3. FLUTTER DEVELOPMENT
  • •BLoC / Cubit state management
  • •Repository Pattern & GetIt DI
  • •Barcode scanner & ESC/POS thermal print
  • •Direct Google Play Billing integration
4. DATABASE & SYNC DESIGN
  • •Drift (SQLite) local relational schema
  • •pending_sales_transaction mutation queue
  • •Idempotent local-to-cloud sync engine
  • •Cloudflare D1 migrations & R2 storage
5. BACKEND INTEGRATION
  • •Cloudflare Workers REST API handlers
  • •Firebase Auth & JWT token rotation
  • •RTDN subscription webhook verification
  • •Centralized Dio interceptors & error handling
6. REACT ADMIN DASHBOARD
  • •React.js, TypeScript & Tailwind CSS
  • •TanStack Query server-state caching
  • •Single-flight 401 refresh mutex in Axios
  • •Merchant, store, billing & voucher views
7. TESTING & DEBUGGING
  • •Unit testing for Cubits & repositories
  • •Widget testing for core UI flows
  • •Strict static analysis (flutter analyze)
  • •Offline edge-case & billing verification
8. CI/CD & LIVE MAINTENANCE
  • •GitHub Actions build & test workflows
  • •Android Keystore signing & AAB packaging
  • •Firebase App Distribution staging track
  • •Google Play production release & monitoring
04—PRODUCT CAPABILITIES

Retail Operations Covered End to End

Point of Sale (POS)

Fast cashier checkout, camera barcode scanning, item/order discounts, cash & non-cash settlement, Bluetooth thermal receipt printing, and cart hold.

Inventory & Stock Movements

Traceable stock movement ledger (stock-in, sale deduction, adjustment, stock opname) rather than destructive single-column overwrites.

Product Master & Multi-Unit SKU

Master SKU catalog, packaging unit conversion (e.g., carton → pack → piece), wholesale/retail pricing tiers, and barcode mapping.

Purchasing, Expenses & Payables

Supplier purchase orders, incoming stock batch verification, supplier payable tracking, and operational store expense logging.

Multi-Store Operations

Operate multiple store branches under one owner account with isolated inventory, staff assignments, and active store context switching.

Employee Accounts & RBAC

Granular role-based access control for Owner, Cashier, Warehouse, and Finance enforced at both the mobile UI and backend API layers.

Financial Reports & Analytics

Daily/monthly sales summaries, gross profit calculation, expense breakdowns, inventory valuation, and top-selling product insights.

Customer Receivables (Kasbon)

Customer credit records, partial repayment history, due date tracking, and settlement audit logs.

Subscription & Voucher Management

Free vs. Pro plan entitlements (Pro Solo, Pro Starter, Pro Business), trial handling, and first-period voucher discounts via Google Play Billing.

05—SYSTEM ARCHITECTURE

Multi-Client Production Architecture

Clear separation of responsibilities across the offline-first Flutter mobile application, the React/TypeScript admin dashboard, and the shared Cloudflare Workers + D1 + R2 backend:

Flutter Mobile App (Android)

Cubit · Repository Pattern · Simplified Atomic UI · Dio Interceptors · Drift SQLite · Google Play Billing

React + TypeScript Admin Web

Tailwind CSS · TanStack Query · Axios Single-Flight Refresh Mutex · Merchant & Billing Backoffice

Cloudflare Workers API
Auth & JWTStore RBACProducts & UnitsInventory LedgerSales & SyncExpenses & DebtFinancial ReportsPlay Billing RTDN

Stateless TypeScript handlers · Schema validation · Store-scoped guards

Cloudflare D1 Database

Relational SQLite cloud storage · Multi-store tenant isolation · Versioned SQL migrations

Cloudflare R2 Object Storage

Product photos, receipt logos, and business media assets

Drift Local SQLite (Mobile)

On-device relational persistence & pending_sales_transaction queue

06—MOBILE & OFFLINE-FIRST ARCHITECTURE

Semi-Clean Layered Flutter Architecture, Simplified Atomic Design & Drift Offline Engine

The Flutter mobile application uses a pragmatic Semi-Clean / Layered Architecture rather than rigid ceremony. Cubit manages presentation state and feature workflow orchestration, while Repositories coordinate access between Remote Data Sources (Dio REST API) and Local Data Sources (Drift SQLite). Dependency injection is wired through get_it, keeping presentation widgets decoupled from persistence and network implementation details.

1. UI / Screen

Simplified Atomic Design widgets, camera barcode scanner & thermal print dialogs

2. BLoC / Cubit

Immutable state emissions, form validation & workflow orchestration

3. Repository

Single source-of-truth coordinator between local SQLite and remote REST API

4. Data Sources

RemoteDataSource & LocalDataSource contract boundaries

5. Dio & Drift

Dio HTTP client with interceptors & Drift SQLite local database

UI Component Architecture: Simplified Atomic Design
Reusable Design System

To maintain visual consistency across POS, inventory, expense, and reporting modules without over-nesting widget trees, UI components are organized using a Simplified Atomic Design hierarchy:

Atoms

Design tokens, typography, status badges, currency formatters, buttons, and themed text inputs.

Molecules

SKU search bars with barcode triggers, unit selector chips, quantity steppers, and empty/error state cards.

Organisms

POS cart summary sheets, multi-unit conversion forms, receipt preview modals, and role permission matrices.

Screens / Feature Pages

Feature-scoped screens wired to scoped BlocProvider / BlocConsumer lifecycles.

Offline-First Persistence & Synchronization Engine (Drift / SQLite)

Retail cashiers cannot stop serving customers when mobile data or store Wi-Fi drops. TRASAQU prioritizes local-first execution for daily store operations and queues mutations for background synchronization when connectivity returns:

Local-First Catalog & Config

Products, packaging units, categories, customers, and active store settings are persisted in Drift SQLite for instant zero-latency lookup at the cashier counter.

Pending Sales Mutation Queue

Offline checkouts are written atomically to pending_sales_transaction with client-generated idempotency keys and sync status flags (pending, syncing, synced, failed).

Cart Hold & Sync Replay

In-progress carts and held customer orders survive app restarts; queued sales flush sequentially to Cloudflare Workers once network reachability is restored.

Offline-Supported Operations (Local Drift SQLite)
  • • Browsing product catalog, SKU prices, and multi-unit conversions
  • • Barcode scanning, cart item calculation, and discount application
  • • Holding/parking customer carts (offline_holder) across sessions
  • • Recording POS sales transactions into pending_sales_transaction
  • • Printing customer receipts via Bluetooth ESC/POS thermal printers
Online-Required Operations (Cloudflare Workers API)
  • • Initial account authentication, Firebase sign-in, and JWT token rotation
  • • Creating new store branches, inviting employees, and modifying RBAC roles
  • • Purchasing Pro subscriptions via Google Play Billing & RTDN verification
  • • Synchronizing pending_sales_transaction queue to Cloudflare D1
  • • Multi-branch consolidated reporting and cloud media uploads to Cloudflare R2

Engineering Boundary Note: Multi-store context is isolated per active store_id. Real-time distributed conflict resolution across multiple simultaneously offline cashier terminals in the same branch is outside the current implementation and remains a planned future enhancement.

07—ADMIN DASHBOARD (REACT · TYPESCRIPT · TAILWIND CSS)

Companion Web Administration & Platform Operations Dashboard

Alongside the Flutter mobile application, TRASAQU includes a web-based administration dashboard built with React.js, TypeScript, and Tailwind CSS. Rather than forcing mobile patterns onto the web, the dashboard uses idiomatic web architecture—combining modular feature API layers, TanStack Query for server-state caching and invalidation, and a centralized Axios client consuming the shared Cloudflare Workers API.

1. Page / UI

Tailwind CSS responsive views, KPI cards, filterable tables & modal dialogs

2. Feature Hooks

Custom TanStack Query hooks managing pagination, caching & mutations

3. Feature APIs

Domain modules for merchants, stores, subscriptions, vouchers & telemetry

4. Central Axios

Shared HTTP client injecting auth headers and active store context

5. Refresh Mutex

Single-flight 401 token rotation mutex with queued request replay

Engineering Highlight: Client-Side Single-Flight Refresh Mutex
Verified in apiClient

When an admin page mounts multiple TanStack Query hooks simultaneously after an access token expires, naive interceptors trigger parallel 401 refresh storms. The centralized Axios client serializes token rotation using a single-flight mutex:

isRefreshing Lock

The first 401 response acquires the refresh lock so only one token refresh call is sent to Cloudflare Workers.

failedQueue Buffer

Concurrent requests that receive 401 while a refresh is in flight are held in an in-memory promise queue.

processQueue() Replay

Once the new JWT pair arrives, queued requests automatically receive the updated bearer token and replay transparently.

Admin Dashboard Capabilities: Implemented vs. Planned
Operations, Subscriptions & VouchersImplemented

Platform KPI overview, merchant/user directory, multi-store inspection, subscription tier catalog (Free, Pro Solo, Pro Starter, Pro Business), and promotional voucher management.

System Audit Log ExplorerIn Progress

Administrative UI view initialized in AuditLogsPage; full server-side audit filtering integration is in progress.

Dynamic Custom Enterprise BuilderPlanned

Self-serve custom enterprise entitlement builder and automated anomaly alerts planned for future B2B partner rollouts.

Admin Web Console — Verified Desktop Screenshots
Interactive Desktop Dashboard Preview
admin.trasaqu.com / platform-operations-dashboard
Platform Operations Dashboard
Click to Enlarge Fullscreen

●Platform Operations Dashboard

Live administration backoffice built with React, TypeScript, and Tailwind CSS for monitoring merchant accounts, active store branches, subscription health, voucher redemptions, and platform transaction metrics.

08—BACKEND ARCHITECTURE, MIGRATION & SUBSCRIPTION BILLING

Current Cloudflare Workers + D1 + R2 Architecture (Migrated from NestJS)

TRASAQU's current production backend runs on Cloudflare Workers for stateless API execution, Cloudflare D1 for relational SQLite persistence, and Cloudflare R2 for product and business media storage. In the earlier backend implementation, TRASAQU was built with NestJSon a self-managed Cloud VPS. As an independent engineer operating the product end-to-end, I migrated the backend from NestJS/VPS to Cloudflare's serverless stack so routing, secrets, database persistence, and object storage run within a unified, low-maintenance production environment.

CURRENT PRODUCTION ARCHITECTUREActive in Production
  • • Mobile Client: Flutter / Dart (Cubit, Repository Pattern, Drift SQLite, Dio)
  • • Backend API Execution: Cloudflare Workers (TypeScript REST handlers)
  • • Relational Database: Cloudflare D1 (SQLite with versioned migrations)
  • • Object & Media Storage: Cloudflare R2 (product images & business media)
  • • Subscription Billing: Direct Google Play Billing + Workers RTDN webhooks
PREVIOUS ARCHITECTURE (EARLIER IMPLEMENTATION)Migrated / Retired
  • • Earlier Backend Framework: NestJS (TypeScript modular controllers & services)
  • • Earlier Hosting: Self-managed Linux Cloud VPS deployment
  • • Architecture Evolution: Domain logic, authentication, store-scoped RBAC, inventory ledger rules, and API contracts were adapted from NestJS modules into stateless Cloudflare Workers handlers backed by D1 and R2.
Mobile Client Responsibilities (Flutter)
  • • Local SQLite persistence (Drift) for catalog, cart hold, and offline POS checkout
  • • Queuing offline mutations (pending_sales_transaction) and replaying on reconnect
  • • UI role affordances, barcode scanning, and Bluetooth ESC/POS receipt printing
  • • Initiating Google Play Billing purchase flows and attaching bearer/store headers via Dio
Backend Responsibilities (Cloudflare Workers + D1 + R2)
  • • Authoritative authentication, JWT issuance/rotation, and store-scoped RBAC enforcement
  • • Transactional stock movement ledger commits and multi-unit inventory reconciliation in D1
  • • Server-side Google Play purchase verification, RTDN lifecycle processing, and voucher validation
  • • Aggregating store financial reports and managing signed media storage in Cloudflare R2
Subscription & Billing Architecture: Direct Google Play Billing + RTDN
Direct Native Billing · No RevenueCat

TRASAQU integrates directly with Google Play Billing from Flutter without third-party subscription middleware such as RevenueCat. Purchase tokens and subscription lifecycle events are verified authoritatively by the Cloudflare Workers backend:

1. Tiered Entitlements

Supports Free tier alongside Pro Solo, Pro Starter, and Pro Business plans governing multi-store limits, staff seats, and cloud sync capabilities.

2. Server Verification

After checkout on Android, the Flutter app sends the Google Play purchase token to Cloudflare Workers, which validates the purchase directly with Google Play Developer APIs before granting D1 entitlements.

3. RTDN Webhooks

Real-Time Developer Notifications (RTDN) notify the backend of renewals, cancellations, grace periods, and expirations so entitlement states stay accurate even when the app is closed.

4. Trials & Vouchers

Supports trial eligibility checks and promotional voucher codes engineered for first-billing-period discounts with server-side redemption limits.

Cloudflare Workers HTTP Request Lifecycle
1HTTP Request
2Schema Validation
3JWT Auth Guard
4Store RBAC Check
5Worker Handler
6Domain Service
7D1 / R2 Access
8JSON Response
09 & 10—SECURITY, RBAC & MULTI-STORE ISOLATION

Store-Scoped Authorization & Application Security Architecture

Permission Resolution Chain

Permissions are never hardcoded globally to a user record; instead, they are resolved dynamically from the user's membership in the currently active store:

AUTHENTICATED USER
↓
STORE MEMBERSHIP (Active Store Context)
↓
ROLE (Owner / Cashier / Warehouse / Finance)
↓
PERMISSIONS (create:sale, edit:price, manage:stock)
“UI permission checks improve user experience. Backend API authorization enforces security.”

Why a Contextual Store Membership Model?

A flat user.store_id column breaks as soon as an owner opens a second branch or assigns a staff member different responsibilities across locations:

Contextual Store Membership
Store Branch ARole: Owner
Store Branch BRole: Cashier

Every API request carries the active store context, and Cloudflare Workers guards verify store membership and permission scope before executing any D1 query.

Security & Reliability Engineering: Implemented Controls vs. Future Enhancements
Transparent Security Scope
Implemented in TRASAQU Production
  • • Flutter Secure Storage: Encrypted on-device storage for JWT access/refresh tokens and session credentials
  • • Centralized Dio Interceptors: Automated bearer token injection, active store header propagation, and single-flight 401 token refresh queuing
  • • Firebase Auth & Session Management: Verified identity onboarding paired with backend-issued JWT sessions
  • • Backend RBAC & Validation: Store-scoped authorization guards, strict payload schema validation, structured error responses, and Workers runtime logging
Future Security Roadmap (Not Claimed on Current Release)
  • • Certificate Pinning & Root Detection: Planned as future mobile hardening if high-risk enterprise tiers require it (previously implemented in my enterprise Astra/SERA work on TRACtoGo, FMS Driver, and VIMA)
  • • Play Integrity Attestation: Planned device attestation integration for automated abuse prevention
  • • Granular Security Audit Stream: Expanding administrative audit log retention and anomaly alerting
11—INVENTORY CONSISTENCY

Stock Is a History of Movements, Not Just a Single Overwritten Number

Storing inventory as a single mutable integer column makes it impossible to audit shrinkage or reconcile offline sales. TRASAQU records every stock change as an immutable movement ledger entry (purchase stock-in, POS sale deduction, manual adjustment, or stock opname) so current balances remain historically traceable.

Purchase (Incoming Supplier Batch)+100
Sale (POS Cashier Checkout)-3
Adjustment (Damaged / Shrinkage)-2
Current Verified Stock95
Traceability
Auditability
Loss Prevention
Historical Rebuild
12—BUSINESS FLOW

A Single POS Sale Orchestrates Multiple Domains

Completing a cashier checkout involves a coordinated 16-step pipeline across authentication, store RBAC, unit conversion, stock ledger deduction, and financial accounting—far beyond a simple INSERT INTO sales statement:

1. Cashier Creates Sale
2. Authenticate Session
3. Verify Store RBAC
4. Resolve Active Store
5. Validate Product SKU
6. Convert Packaging Unit
7. Calculate Tier Pricing
8. Apply Discount Rules
9. Compute Order Total
10. Persist Local / Queue
11. Create Sale Items
12. Deduct Inventory Balance
13. Append Stock Movement
14. Record Payment / Debt
15. Commit D1 Transaction
16. Update Financial Ledger
13—ENGINEERING CHALLENGES

Problems Solved Beyond Basic CRUD

Offline Cashier Continuity
PROBLEM:

Store internet drops during peak checkout hours can halt sales and frustrate customers.

DECISION:

Persist catalog in Drift SQLite and queue offline checkouts in pending_sales_transaction.

WHY:

Cashier checkout must remain fast and uninterrupted regardless of network stability.

Concurrent Token Expiration
PROBLEM:

Access tokens expiring mid-shift while multiple API requests are in flight.

DECISION:

Centralized Dio & Axios refresh interceptors with single-flight request queuing.

WHY:

Prevents race-condition logout loops and keeps auth logic out of UI screens.

Multi-Unit Stock Accuracy
PROBLEM:

Retailers buy in cartons/packs but sell in individual pieces or packs.

DECISION:

Normalized base-unit conversion ratios paired with an immutable stock movement ledger.

WHY:

Prevents fractional rounding drift and preserves full auditability.

Contextual Multi-Store RBAC
PROBLEM:

A user may be an Owner in Store A but help as a Cashier in Store B.

DECISION:

Store-membership role resolution evaluated per active store header on every API call.

WHY:

Enforces strict tenant isolation and accurate permission boundaries.

Direct Play Billing & RTDN
PROBLEM:

Keeping subscription entitlements accurate across renewals, trials, and first-period vouchers.

DECISION:

Direct Google Play Billing on Flutter verified server-side via Cloudflare Workers & RTDN webhooks.

WHY:

Eliminates third-party billing middleware fees while ensuring authoritative server entitlements.

Solo Backend Operations
PROBLEM:

Maintaining a stateful NestJS Linux VPS added patching and infrastructure overhead.

DECISION:

Migrated backend services to Cloudflare Workers, D1 relational SQLite, and R2 storage.

WHY:

Allows a solo engineer to operate a production backend with minimal DevOps maintenance.

14—ENGINEERING DECISIONS & TRADE-OFFS

Architectural Choices With Explicit Trade-Offs

Semi-Clean Flutter + Cubit
WHY:

Clear separation across UI, Cubit, Repository, and Data Sources without redundant boilerplate.

TRADE-OFF:

Complex cross-domain rules require disciplined repository boundaries as features grow.

Drift (SQLite) Offline Queue
WHY:

Type-safe relational SQL on Android for fast local catalog queries and pending sales persistence.

TRADE-OFF:

Requires explicit schema migration management and idempotent sync replay logic.

Cloudflare Workers + D1 + R2
WHY:

Replaced self-managed NestJS/VPS with zero-maintenance serverless execution, SQL, and object storage.

TRADE-OFF:

Required refactoring stateful NestJS patterns into stateless request-driven Workers handlers.

Direct Google Play Billing
WHY:

Full control over Pro Solo/Starter/Business tiers, first-period vouchers, and RTDN verification.

TRADE-OFF:

Higher initial backend implementation effort compared to using a wrapper like RevenueCat.

15—RELIABILITY & FAILURE MODES

Designed Beyond the Happy Path

Access token expires during active shiftHANDLED

Centralized Dio & Axios interceptors queue concurrent requests and rotate tokens once.

Internet connection drops at cashierHANDLED

Drift SQLite serves cached catalog and records sales into pending_sales_transaction.

User switches active store branchHANDLED

Scoped Cubit states reset and active store context header updates across API calls.

Concurrent stock deduction verificationDESIGNED FOR

Transactional D1 stock movement commits validate stock balances on sync.

Subscription expiration or cancellationHANDLED

RTDN webhooks update entitlements while preserving existing merchant historical data.

Multi-terminal offline conflict resolutionPLANNED / FUTURE

Distributed conflict resolution across multiple simultaneously offline cashier devices is planned for future iterations.

16—TESTING, CI/CD & PRODUCTION RELEASE

Automated Quality Gates, CI/CD Workflows & Google Play Production

Engineering responsibility extended all the way to live production delivery. Code quality is enforced through Flutter static analysis (flutter analyze), unit tests covering Cubit state transitions and repository synchronization logic, and widget tests for core UI flows. Release workflows are automated with GitHub Actions—handling dependency resolution, code generation, test execution, Android Keystore signing, staging distribution via Firebase App Distribution, and production release packaging (.aab) for Google Play Store.

Testing & Analysis

Unit tests, widget tests, and strict flutter analyze lint gates

GitHub Actions CI/CD

Automated builds, codegen, Android signing & Firebase App Distribution

Cloudflare Delivery

Workers deployment, D1 SQL migrations, R2 buckets & secret management

Production Status

Production — Live on Google Play (com.trasaqu.trasaqu)

Production — Live on Google Play

Package: com.trasaqu.trasaqu · Official Android Production Release

View on Google Play
17—PRODUCT EVOLUTION

Retail First. Shared Platform Next.

TRASAQU intentionally launched with a concrete Retail and Grocery domain rather than attempting to model every business category at once. With core platform capabilities validated in production on Google Play, shared foundation layers can be reused as future domain-specific verticals are introduced.

TRASAQU SHARED PLATFORM FOUNDATION
Authentication · Store Isolation · Multi-Store RBAC · Google Play Billing & RTDN · Cloudflare Workers/D1/R2 · Drift Offline Engine
↓ Modular Domain Specialization ↓
RETAILLIVE IN PROD
  • • Products & SKU
  • • Packaging Units
  • • Barcode Scan
  • • Stock Movements
F&BPLANNED
  • • Raw Ingredients
  • • Recipe / COGS
  • • Menu Modifiers
  • • Table / Kitchen
LAUNDRYPLANNED
  • • Weight / Kg Pricing
  • • Service Stages
  • • Ready & Pickup
  • • Order Tracking
AUTO WORKSHOPPLANNED
  • • Vehicle Records
  • • Service Work Orders
  • • Mechanic Assignment
  • • Spare Parts SKU

Different Businesses Share Transactions — Not Identical Workflows

Forcing every industry into a single generic POS screen creates brittle conditional logic. TRASAQU reuses shared platform infrastructure (auth, RBAC, billing, sync) while allowing each business vertical to maintain purpose-built domain workflows.

18—FUTURE COLLABORATION

From Independent Production Release to Collaborative Expansion

The live TRASAQU Retail platform was independently designed, architected, and shipped to production on Google Play by me. As TRASAQU expands beyond its initial Retail and Grocery scope, future multi-vertical development is planned in collaboration with Kōhī Labs as a technology partner.

PHASE 01: PRODUCTION — LIVE ON GOOGLE PLAYCompleted & Live
Agung Wibowo (Independent End-to-End Ownership)
  • • Domain Research, PRD & UX/UI Design
  • • Offline-First Flutter Mobile App + React Admin Web
  • • Cloudflare Workers + D1 + R2 Backend (Migrated from NestJS)
  • • Direct Google Play Billing + RTDN & Play Store Release
PHASE 02: PLANNED PLATFORM EXPANSIONFuture Roadmap
TRASAQU × Kōhī Labs
  • • Technology & Product Engineering Collaboration
  • • Shared Multi-Tenant Platform Scaling
  • • Distributed Multi-Terminal Conflict Resolution
  • • New Business Verticals (F&B, Laundry, Auto Workshop)
19—PRODUCT ROADMAP PRINCIPLE

Expand by Domain Validation, Not Feature Bloat

Adding a new business vertical is never just “adding another menu tab in the UI.” Each vertical requires dedicated domain modeling, tailored UX flows, explicit API contracts, relational schema design, and field validation with real merchants.
20—TECHNOLOGY & TOOLS

Verified Production Technology Stack

MOBILE APPLICATION
FlutterDartBLoC / CubitRepository PatternDrift (SQLite)DioFlutter Secure StorageGoogle Play BillingGoRouterGetIt
BACKEND & CLOUD (CURRENT)
Cloudflare WorkersCloudflare D1Cloudflare R2TypeScriptREST APIRTDN WebhooksFirebase AuthJWT & RBAC
WEB ADMIN DASHBOARD
React.jsTypeScriptTailwind CSSTanStack QueryAxios
DELIVERY & PREVIOUS STACK
GitHub ActionsGoogle Play ConsoleFirebase App Distributionflutter analyzeNestJS (previous)
21—ENGINEERING TAKEAWAYS

Key Engineering Lessons From End-to-End Ownership

Domain Rules Drive Schema Design

Multi-branch retail requirements directly shaped the contextual StoreMember RBAC model and unit conversion tables.

Authorization Must Be Server-Enforced

Mobile UI role checks improve usability, but Cloudflare Workers store-scoped guards guarantee tenant security.

Inventory Demands an Immutable Ledger

Recording stock as movement events rather than overwritten numbers prevents silent inventory drift.

Offline First Requires Explicit Boundaries

Separating local Drift SQLite mutation queues from online-only cloud operations keeps POS checkouts fast and predictable.

22 — SUMMARY

End-to-End Product Engineering Summary

TRASAQU demonstrates my ability to take a real-world business problem from product definition and architecture to a live production release on Google Play. I engineered the offline-first Flutter mobile application (Semi-Clean layered architecture, Cubit, Repository Pattern, Simplified Atomic Design, Drift SQLite mutation queues, and direct Google Play Billing), migrated the backend from NestJS to Cloudflare Workers with D1 and R2 storage, implemented RTDN subscription webhook verification, built the companion React/TypeScript admin dashboard, and automated CI/CD delivery with GitHub Actions.

STATUSProduction — Live on Google Play
MOBILE & ADMINFlutter + React/TypeScript
BACKEND & DATACloudflare Workers · D1 · R2
MONETIZATIONGoogle Play Billing + RTDN