Babyshop – Real-Time Retail E-Commerce Mobile App (Aptech Semester Final · 21-Day Team Sprint)

Production-ready dual-app retail e-commerce ecosystem engineered as our Aptech Semester Final Capstone in a rapid 21-day sprint: features customer shopping and store manager admin apps on Flutter, zero-latency persistent socket inventory synchronization via Firebase, and native 60fps performance.

By Amaanullah Khan· 8 min read· Updated Nov 2026
Babyshop Flutter and Firebase E-Commerce Dual-App Architecture & Case Study
Client
Aptech Academic Achievement (Semester Final Capstone)
Industry
Retail E-Commerce & Cross-Platform Mobile Applications
Role
Team Lead & Lead Mobile Systems Architect
Timeline
21 Days (Rapid High-Intensity Team Sprint)
Platform
Flutter (Android & iOS), Firebase Real-Time DB & Cloud Storage
Status
Completed
FlutterDartFirebase Realtime DatabaseFirebase AuthCloud StorageProvider State ManagementPush NotificationsAgile SCRUM
TL;DRExecutive Summary

Engineered an award-winning dual-app mobile commerce ecosystem for our Aptech Semester Final in an intensive 21-day team sprint: connected a customer storefront app with a live manager admin app via Firebase persistent sockets, achieving zero-latency inventory synchronization and locked 60fps fluidity across Android & iOS.

21 Days High-intensity sprint from scratch to dual-app launch
0ms Real-time inventory sync via Firebase persistent sockets
Dual App Customer storefront & store manager admin console
Top Honors Aptech Semester Final Capstone evaluation award
On this page Overview

01 · Overview

Aptech Semester Final Capstone: Delivering a Production Dual-App System in 21 Days

Babyshop was engineered as our team’s Semester Final Capstone Project at Aptech — delivered from concept to full production deployment within an uncompromising, high-intensity 21-day deadline. Rather than creating a static visual prototype or simple CRUD interface, our team set out to engineer a complete, commercial-grade Dual-App Mobile Ecosystem built with Flutter and a live Firebase Realtime Backend.

The vision was to solve one of the most persistent bottlenecks in retail e-commerce: the synchronization gap between consumer shopping carts and back-office warehouse inventory. When multiple shoppers browse high-demand baby clothing and care essentials, traditional web stores rely on periodic REST polling, causing stock lag, overselling, and customer frustration. Our mission was to eliminate this friction by engineering two interconnected native apps — a customer storefront and a store manager console — communicating over persistent WebSockets with zero milliseconds of inventory delay.

Serving as the Team Lead and Lead Mobile Architect, I directed our cross-functional team through the entire product lifecycle — defining the shared Dart core architecture, establishing Git branching protocols to prevent merge conflicts, engineering the real-time Firebase state engine, and ensuring 60fps native fluidity across both Android and iOS devices. The project was evaluated by senior academic faculty at Aptech and awarded top honors for architectural maturity, agile velocity, and real-world retail utility as part of our focus on modern cross-platform mobile app development and real-time process automation.

02 · The Challenge

The 21-Day High-Intensity Sprint: Speed, Team Orchestration & Inventory Integrity

Delivering two complete, production-ready cross-platform mobile applications in just three weeks presented a formidable combination of technical debt risks and team orchestration hurdles:

The 21-Day Non-Negotiable Deadline

Building authentication, catalog filtering, cart calculations, order placement, admin stock management, cloud image uploads, and security rules within 21 calendar days required strict SCRUM milestones and ruthless prioritization of high-ROI modules.

Team Code Synchronization & Merge Friction

With multiple developers pushing code simultaneously on a tight timeline, uncoordinated Git commits could easily result in broken dependencies, duplicate model definitions, and massive merge conflicts that could derail the entire submission.

Dual-App Shared State & Zero-Lag Inventory

The system required two separate native applications: a consumer shopping app and an administrative store manager app. Any stock adjustment made on the admin app had to reflect across all active customer screens instantaneously to prevent out-of-stock ordering.

Cross-Platform Native Rendering at 60 FPS

Both applications had to pass rigorous live evaluation on diverse mobile test hardware, maintaining locked 60fps animations, instant image caching, and zero memory leaks under rapid category scrolling.

03 · Agile Execution

The 21-Day Sprint Roadmap: How the Team Delivered on Time

To eliminate ambiguity and guarantee deadline compliance, I broke down the 21-day timeline into four structured agile phases, leading daily morning standups and enforcing strict pull-request reviews:

Phase 1 (Days 1–5): Architecture & Shared Core

Designed the centralized Firebase Realtime DB schema, configured Firebase Auth with role security rules, and architected a shared Dart core package containing common models, validation logic, and cloud connectors to prevent redundant coding.

Phase 2 (Days 6–12): Dual UI Sprints & State Management

Split the team into parallel feature tracks: one developer group focused on the Consumer App (catalog browsing, search, reactive cart via Provider), while the other built the Admin App (product CRUD, stock sliders, and order dispatch queues).

Phase 3 (Days 13–18): Persistent Sockets & Atomic Transactions

Integrated bi-directional Firebase WebSockets across both applications, implemented atomic stock deduction transactions (runTransaction) to prevent checkout race conditions, and configured Cloud Storage with WebP image compression.

Phase 4 (Days 19–21): Device Benchmarking & Final Polish

Conducted extensive stress testing across Android and iOS hardware, resolved UI edge cases, fine-tuned image caching for low-memory devices, and deployed production builds ready for faculty evaluation.

04 · Solution Architecture

Cloud-Native Reactive Socket Architecture

To bypass the weeks of server provisioning and database orchestration that traditional monolithic frameworks require, I chose a cloud-native, serverless Flutter and Firebase architecture.

Mobile Clients
Consumer Flutter AppCatalog, Cart & Checkout
Admin Flutter AppLive Stock & Order Pipeline
persistent WebSockets (bi-directional streams)
Cloud Engine
Firebase Realtime DBSub-millisecond JSON state synchronization
Firebase Auth & SecurityRole-based client access boundaries
atomic transaction commits (ACID)
Media & Alerts
Cloud StorageWebP optimized product images
Cloud Messaging (FCM)Instant push alerts for orders
Dual-app mobile architecture: consumer and admin Flutter clients communicate through persistent Firebase socket streams, ensuring instantaneous inventory synchronization with zero server polling.
Key Architecture Principle

By leveraging Firebase Persistent WebSocket connections instead of periodic REST polling, stock updates initiated on the admin mobile app propagate to all active consumer devices in zero milliseconds, completely eliminating out-of-stock ordering risks.

05 · Key Features

Engineered Modules Across the Dual-App Ecosystem

The platform is organized into two dedicated Flutter applications sharing a centralized real-time cloud database:

Consumer Storefront App

Sleek, fluid consumer mobile experience featuring category browsing, instant product search, dynamic multi-item cart calculation, and friction-free multi-step checkout.

Dedicated Store Manager Admin App

Administrative mobile dashboard enabling store managers to add products, adjust live stock counts via interactive sliders, modify pricing, and track inbound order queues in real time.

Zero-Latency Socket Synchronization

Any stock alteration, price change, or order confirmation initiated on the Admin App is instantly reflected in the Consumer App with zero page refreshes or delays.

Role-Based Security & Media Pipeline

Granular Firebase security rules ensuring customers cannot alter product prices or view admin endpoints, paired with cached cloud image pipelines for ultra-fast loading.

06 · Engineering Challenges

Technical Challenges & Concrete Architectural Solutions

01

Preventing Team Code Merge Bottlenecks Under a 21-Day Timeline

Problem

Multiple developers working concurrently on two separate Flutter codebases risked duplicate code, divergent models, and catastrophic Git merge conflicts.

Root Cause

Lack of a centralized architectural blueprint and shared model library between the consumer and administrative applications.

Solution

As Team Lead, I architected a shared Dart core package containing all data models, Firebase stream providers, and validation logic. Both apps imported this single source of truth, reducing overall codebase duplication by over 40% and eliminating merge collisions.

02

Race Conditions in Simultaneous High-Velocity Checkouts

Problem

When multiple test devices attempted to purchase the last available item simultaneously, simple client-side deductions resulted in negative inventory counts.

Root Cause

Standard read-then-write operations on mobile databases are non-atomic and susceptible to concurrency race conditions.

Solution

Implemented Firebase atomic transaction handlers (runTransaction()) directly on product inventory nodes. If stock reaches zero during checkout validation, subsequent concurrent transactions are safely aborted with instant user feedback.

03

60 FPS Animation Fluidity & Image Caching on Constrained Hardware

Problem

Rapidly scrolling through product grids caused frame stutter and high memory consumption on entry-level Android devices.

Root Cause

Decoding uncompressed high-resolution images directly on the main UI rendering thread during scroll gestures.

Solution

Configured a background image processing pipeline: product images are uploaded in WebP format, cached on local device storage using CachedNetworkImage, and decoded in separate Dart worker isolates, locking UI scroll velocity at 60 FPS.

07 · Results & Impact

Academic Distinction & Production-Ready Performance

21 DaysSprint DeliveryFrom Scratch to Production
0msInventory SyncLive Firebase WebSockets
60 FPSUI PerformanceTested on Android & iOS
Top HonorsAptech Final ProjectAcademic Merit Award

The Babyshop project stood out at our Aptech Semester Final presentations, earning high commendations from senior evaluators for its technical depth, production-ready architecture, and the team's disciplined execution within an aggressive 21-day timeline.

Beyond academic success, the project served as a definitive proving ground for professional agile development. It established our team's capability to deliver complex, dual-app cross-platform systems under strict constraints, embodying the best practices of modern e-commerce growth principles and scalable mobile software engineering.

08 · FAQ

Aptech Semester Project & Mobile Architecture FAQ

How did your team complete a full dual-app system in just 21 days for the Aptech Final?

Success came down to disciplined agile SCRUM management, daily morning standups, and architectural decoupling. By creating a shared Dart core package for models and validation, and leveraging Firebase for backend authentication and real-time database management, our team eliminated traditional server overhead and dedicated 100% of our 21-day sprint to interface polish and business logic.

What was your specific role as Team Lead on this semester project?

As Team Lead and Mobile Architect, I was responsible for overall project architecture, defining the Firebase data structure, enforcing Git branch integration policies to prevent code collisions, building the core real-time inventory synchronization engine, and conducting code reviews across all team submissions.

How does the Firebase Realtime Database prevent out-of-stock purchases?

Firebase maintains persistent WebSocket streams between the database and all active devices. When an item is purchased, an atomic database transaction decrements the stock count immediately across the entire network. If another customer attempts to checkout an item whose stock has hit zero, the transaction safely aborts with an instant out-of-stock notification.

Why did the team build a Dual-App Ecosystem instead of a single app with login roles?

A dual-app approach separates consumer shopping workflows from administrative control, providing smaller app bundle sizes, dedicated security boundaries, and tailored UX. Store managers receive immediate push alerts and can update stock from anywhere without logging into a desktop dashboard.

How does the Flutter codebase maintain 60 FPS on lower-end mobile devices?

Flutter compiles natively to ARM machine code for both iOS and Android. By utilizing background image decoding worker isolates, disk caching with WebP assets, and avoiding expensive widget rebuilds through Provider state selectors, both applications maintain silky 60fps frame rates even on budget hardware.

Related systems

More Projects

Planning a high-performance mobile application?

Whether you need dual-app retail platforms, real-time Firebase synchronization, or cross-platform Flutter engineering, let’s bring your app to life.

Schedule a mobile app consultation →