Back to Archive
Case StudyAly Baba POS EcosystemFull stackDashboardsAPIsPlatformsERP

Multi-Branch POS Operations. Unified.

A complete POS ecosystem connecting admin dashboards, branch operations, cashier workflows, inventory tracking, expenses, and real-time business notifications.

Role
Full-Stack Developer
Timeline
Production System
Industry
Retail / POS / Business Operations
Status
Production Ready
aly-baba-pos-admin-desktop-cashier
Aly Baba POS System + Desktop Cashier Application
01Overview

What this system is

Aly Baba POS was built to simplify daily business operations across multiple branches. The ecosystem combines a powerful admin dashboard, Laravel API, MySQL database, and a dedicated Electron desktop cashier application. It helps business owners manage sales, inventory, expenses, employees, reports, and branch performance from one connected system while giving cashiers a fast and reliable desktop interface for daily transactions.

02The Problem

What we needed to solve

Businesses with multiple branches often struggle to manage sales, inventory, expenses, employees, and branch performance using disconnected tools. Manual tracking can lead to stock mistakes, delayed reports, missing expense records, and poor visibility over daily operations.

03The Solution

How we shipped it

A centralized POS ecosystem built with Laravel APIs, a React admin dashboard, and an Electron desktop cashier application. The system connects sales, inventory, expenses, reports, notifications, and branch operations into one workflow, allowing admins to monitor the business while cashiers handle daily transactions through a fast desktop application.

04Architecture

How the system is wired

The system follows an API-first architecture where the Laravel backend acts as the central business layer, the React admin dashboard provides management and reporting tools, and the Electron desktop cashier application handles daily sales operations for each branch. All operations are connected through REST APIs and stored in a centralized MySQL database.

Data flow
01
Admin Dashboard

React-based dashboard for managing branches, employees, services, inventory, expenses, reports, analytics, notifications, and system settings.

02
Laravel API

Central backend layer responsible for authentication, business rules, sales processing, inventory ledger, expenses, notifications, and reports.

03
Desktop Cashier Application

Electron desktop POS application used by cashiers to create orders, manage payments, print receipts, and sync transactions with the central system.

04
Database Layer

MySQL database storing branches, users, services, stock movements, orders, expenses, notifications, and reports data.

05Tech Stack

Engineering choices

Frontend
React.jsViteTailwind CSSJavaScript
Backend
LaravelPHPMySQLREST API
Integrations
Real-Time NotificationsReceipt Printing
Infrastructure
Electron Desktop AppProduction Build
06Gallery

In the wild

Admin dashboard overview
Admin dashboard overview
Admin dashboard overview
Desktop cashier login
Desktop cashier login
Desktop cashier login
Desktop cashier dashboard
Desktop cashier dashboard
Desktop cashier dashboard
New sale screen
New sale screen
New sale screen
Inventory management
Inventory management
Inventory management
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
Reports and analytics
07Desktop Application

Cashier desktop experience

The cashier desktop application is built for speed inside branch operations. It gives cashiers a focused POS interface for login, order creation, payment handling, receipt printing, and daily transaction flow while staying connected to the same Laravel backend and central reporting system.

Desktop highlights
Fast cashier login and branch-aware accessDedicated POS workflow for creating and completing salesReceipt printing support from the desktop interfaceConnected to the same inventory, expense, and reporting backend
Desktop cashier login
Desktop cashier login
Desktop cashier login

Secure branch cashier login screen designed for fast daily access and minimal friction at the point of sale.

Cashier dashboard
Cashier dashboard
Cashier dashboard

Main cashier workspace showing quick actions, branch context, and the core sales workflow in a focused desktop layout.

New sale workflow
New sale workflow
New sale workflow

Sales creation screen where cashiers add services, adjust quantities, choose payment methods, and complete orders efficiently.

New sale workflow
New sale workflow
New sale workflow

Sales creation screen where cashiers add services, adjust quantities, choose payment methods, and complete orders efficiently.

New sale workflow
New sale workflow
New sale workflow

Sales creation screen where cashiers add services, adjust quantities, choose payment methods, and complete orders efficiently.

08Backend Systems

Services and data

Authentication & Roles

Role-based access for admins, branch managers, and cashiers with protected API routes.

Sales Engine

Processes POS orders, calculates totals, stores order items, and connects each sale to its branch and cashier.

Inventory Ledger

Tracks stock using stock movements instead of a cached quantity, supporting stock-in, sale consumption, damaged stock, adjustments, and negative stock recovery.

Expenses System

Records branch expenses and connects them to financial reports to calculate net revenue.

Notification System

Generates notifications for new orders, expenses, low stock, and negative stock with sound alerts inside the admin dashboard.

09APIs & Integrations

External surfaces

Integration
Admin API

REST endpoints for managing branches, employees, services, inventory, expenses, reports, analytics, and notifications.

Integration
Cashier API

Dedicated API surface for the desktop cashier app including login, catalog loading, order creation, expenses, and receipt workflows.

Integration
Notification API

Endpoints for listing notifications, unread counters, marking as read, deleting notifications, and saving sound preferences.

10Dashboard Structure

What admins control

01
Dashboard

Main overview for business KPIs, quick actions, recent activity, and operational status.

02
Branches

Manage business branches and connect every sale, expense, employee, and stock movement to the correct branch.

03
Services

Manage sellable services/products and define pricing and stock consumption behavior.

04
Inventory

Track stock entries, stock consumption, low stock, negative stock, and inventory movement history.

05
Expenses

Record branch-level expenses and reflect them directly in reports and net revenue calculations.

06
Reports & Analytics

Daily and monthly reporting for sales, expenses, net revenue, inventory, and branch performance.

07
Notifications

Central notification center for new orders, expenses, stock alerts, and important business events.

08
Desktop Cashier

Electron POS interface for branch cashiers to complete sales, print receipts, and sync transactions.

11Challenges Solved

Hard problems, handled

Impact
Challenge 01

Cashiers may sell services before the admin adds the required stock to the branch inventory.

Resolution

Implemented negative stock handling so the sale is not blocked. When new stock is added later, it automatically offsets the negative balance.

Impact
Challenge 02

Admins need visibility over sales, expenses, stock, and branch performance without checking each branch manually.

Resolution

Built a centralized dashboard with reports, analytics, notification center, and branch-level data filtering.

Impact
Challenge 03

The system needs to support multiple branches operating at the same time.

Resolution

Designed backend flows with transactional operations and branch-scoped data to keep sales, inventory, and expenses reliable.

12Performance

Built to stay fast

Database transactions are used around critical sales and inventory flows.
Stock is calculated using indexed stock movement records.
Reports are structured around branch and date filters for faster lookups.
The admin dashboard uses reusable React components and production Vite builds.
The desktop cashier app is optimized for fast daily order processing.
13UI / UX

Design and interaction

Premium admin dashboard with dark and light mode support.
Focused desktop cashier layout designed for speed and clarity.
Clear cards, tables, filters, and notification states.
Responsive admin dashboard for desktop and tablet usage.
Modern POS visual identity with clean spacing and strong contrast.
14Production Readiness

Ready to ship and operate

Protected authentication flows for admin and cashier users.
Centralized API structure for admin and desktop cashier operations.
Tested business logic for sales, stock handling, expenses, and reports.
Production build support for the React admin dashboard.
Desktop release workflow for the cashier application.
15System Features

What it does

Desktop POS Workflow

Cashiers can create orders, select services, manage quantities, choose payment methods, and complete sales through a dedicated desktop application.

Multi-Branch Operations

The system supports multiple branches operating at the same time while keeping sales, expenses, inventory, and reports separated per branch.

Negative Stock Handling

If the admin forgets to add stock before selling, the system allows the sale and records stock as negative until new stock is added later.

Financial Reporting

Reports calculate total sales, expenses, net revenue, and branch performance using real operational data.

Real-Time Notifications

Admins receive notifications for new sales, new expenses, low stock, and negative stock with sound alerts.

Receipt Printing

The desktop cashier application supports receipt printing workflows for completed orders.

16Technical Decisions

Why we chose what we chose

Decision 01

Laravel API as the central business layer.

Laravel provides a reliable backend foundation for authentication, validation, transactions, reports, and scalable API development.

Decision 02

Electron for the cashier desktop application.

Electron allows the cashier experience to run as a desktop application while still using modern React-based UI development.

Decision 03

Inventory ledger instead of cached stock quantity.

Stock is calculated from movements, making stock history auditable and allowing negative stock recovery automatically.

Decision 04

React dashboard with reusable UI components.

A component-based dashboard makes the system easier to maintain, expand, and redesign across multiple business modules.

17Outcome

Results

POS + Admin Dashboard
System Type
Electron Cashier
Desktop App
Laravel API
Backend
Multi-Branch Ready
Branches

Building something similar?

Let's scope your platform — dashboard, mobile apps, APIs, the full stack.