Case study
Aly Baba POS System + Desktop Cashier Application
Multi-Branch POS Operations. Unified.
A complete POS ecosystem connecting admin dashboards, branch operations, cashier workflows, inventory tracking, expenses, and real-time business notifications.
- Discipline
- Backend Systems
- Type
- Dashboard · API · Full-stack · Web platform · ERP
- Domain
- Retail / POS / Business Operations
- Role
- Full-Stack Developer
- Status
- Production Ready
- Timeline
- Production System
01Project overview
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 challenge
The problem it had 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.
03Solution & features
What was built
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.
Core features
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.
04Architecture & integrations
How the system fits together
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.
Layers
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.
Back-end services
- 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.
APIs & integrations
- Admin API
- REST endpoints for managing branches, employees, services, inventory, expenses, reports, analytics, and notifications.
- Cashier API
- Dedicated API surface for the desktop cashier app including login, catalog loading, order creation, expenses, and receipt workflows.
- Notification API
- Endpoints for listing notifications, unread counters, marking as read, deleting notifications, and saving sound preferences.
Dashboard modules
- Dashboard
- Main overview for business KPIs, quick actions, recent activity, and operational status.
- Branches
- Manage business branches and connect every sale, expense, employee, and stock movement to the correct branch.
- Services
- Manage sellable services/products and define pricing and stock consumption behavior.
- Inventory
- Track stock entries, stock consumption, low stock, negative stock, and inventory movement history.
- Expenses
- Record branch-level expenses and reflect them directly in reports and net revenue calculations.
- Reports & Analytics
- Daily and monthly reporting for sales, expenses, net revenue, inventory, and branch performance.
- Notifications
- Central notification center for new orders, expenses, stock alerts, and important business events.
- Desktop Cashier
- Electron POS interface for branch cashiers to complete sales, print receipts, and sync transactions.
05Technologies & role
The stack, and the role in it
Role on the projectFull-Stack Developer
- Frontend
- React.js
- Vite
- Tailwind CSS
- JavaScript
- Back end
- Laravel
- PHP
- MySQL
- REST API
- Integrations
- Real-Time Notifications
- Receipt Printing
- Infrastructure
- Electron Desktop App
- Production Build
06Challenges & decisions
The hard parts, and the decisions behind them
Challenge 01
Cashiers may sell services before the admin adds the required stock to the branch inventory.
How it was handled
Implemented negative stock handling so the sale is not blocked. When new stock is added later, it automatically offsets the negative balance.
Challenge 02
Admins need visibility over sales, expenses, stock, and branch performance without checking each branch manually.
How it was handled
Built a centralized dashboard with reports, analytics, notification center, and branch-level data filtering.
Challenge 03
The system needs to support multiple branches operating at the same time.
How it was handled
Designed backend flows with transactional operations and branch-scoped data to keep sales, inventory, and expenses reliable.
Technical decisions
- Laravel API as the central business layer.
- Laravel provides a reliable backend foundation for authentication, validation, transactions, reports, and scalable API development.
- 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.
- Inventory ledger instead of cached stock quantity.
- Stock is calculated from movements, making stock history auditable and allowing negative stock recovery automatically.
- React dashboard with reusable UI components.
- A component-based dashboard makes the system easier to maintain, expand, and redesign across multiple business modules.
Performance
- 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.
Interface & experience
- 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.
Production readiness
- 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.
07Gallery
The system on screen
Desktop application
Desktop application
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.
Highlights
- Fast cashier login and branch-aware access
- Dedicated POS workflow for creating and completing sales
- Receipt printing support from the desktop interface
- Connected to the same inventory, expense, and reporting backend
08Outcome
Where it stands
- System Type
- POS + Admin Dashboard
- Desktop App
- Electron Cashier
- Backend
- Laravel API
- Branches
- Multi-Branch Ready
Related work
More systems like this

Morshed Platform Management System
A centralized management system that operates the whole Morshed educational platform — users, curriculum, lessons, courses, exams, subscriptions, payments, permissions, and the content the public site renders.

Shakirin Mills Gold Refining Management System
A complete operational and financial system for gold grinding and refining businesses, unifying grinding operations, customers, inventory, payroll, expenses, collections, accounting, and reporting in one platform.

Awlad Ragab Wholesale System
The Laravel platform that runs Awlad Ragab's wholesale operation: products and categories, customer and representative accounts, orders, promotions, loyalty points, permissions and reporting, served to every client through one REST API.
Building something similar?
Describe what you need — the users, the scope, the systems it has to connect to — and I’ll reply with questions or a next step.
