WORKSPACE / Projects / litepos
POS / E-commerce // Active

LitePOS

Unified POS + multi-theme e-commerce on Laravel — sales, stock, returns, storefronts, and Dockerized deploy.

Role Full-stack Engineer
Architecture Multi-Business POS
Infrastructure Isolated DBs
Commits 87+
LitePOS screenshot

THE CHALLENGE

Small shop owners juggling separate POS, stock, and storefront tools — with no per-store isolation, no production deploy story, and no shared customer/cart layer between channels.

THE APPROACH & SOLUTION

A unified Laravel POS + 3-theme e-commerce storefront on a single codebase: sales/purchases/returns, strict tenant isolation, RBAC, Dockerized deploy with rollback, and a shared cart/checkout layer across stores.

MY CONTRIBUTIONS

  • Redesigned sale POS workspace UI with sidebar controls.
  • Built sales, purchases, product variants, stock movements, returns modules with reports.
  • Three e-commerce themes (Nova/Style/Fresh) with shared cart sidebar (Alpine.js, DaisyUI, toast notifications), light/dark toggle, customer auth, profile, password reset, checkout auto-fill, order details, product image slider with zoom.
  • PC builder module integrated with categories and products.
  • Pivoted to single-shop MVP: removed multi-store scaffolding, SaaS billing, public registration.
  • Added LogsActivity trait on core models, Sale/Purchase policies, try-catch-transaction pattern.
  • Docker stack with Cloudflare Tunnel support and trust proxies; rsync deploy script with rollback.
  • Comprehensive product seeder (5 categories), demo accounts, OrderSeeder.
  • Built professional PDF receipt generation with thermal printer layouts, float overlapping fixes, and font fallbacks.
  • Unified report builder across sales, purchases, and stock with date-range filtering.
  • Integrated SSLCommerz, bKash, and Stripe payment gateways with per-store payment settings.
  • Added shop login before checkout with cart preservation across sessions.
  • Compact sidebar layout with toggle, POS keyboard navigation, and fullscreen mode.

TECH STACK

LaravelDaisyUITailwindAlpine.jsMySQL 8RedisDockerCloudflare TunnelSSLCommerzbKashStripe

ENGINEERING DECISIONS & HIGHLIGHTS

  • Replaced fragmented shop management with a unified POS — sales, purchases, returns, stock movement reports — giving owners a single source of truth.
  • Cut time-to-market for new storefronts with 3 production-ready e-commerce themes (Nova/Style/Fresh — Amazon/Daraz/Chaldal inspired) sharing one cart/checkout/auth layer.
  • Prevented cross-tenant data leaks via strict per-store isolation with route model bindings and RBAC (admin/store admin/cashier).
  • Simplified production deployment with Dockerized stack (PHP 8.2 FPM, Nginx, MySQL 8, Redis), Cloudflare Tunnel, and rsync deploy script with automated rollback.