Replacing spreadsheets with variant-aware inventory, barcode workflows and bi-directional Shopify sync — built on Next.js + MongoDB Atlas.
The client operates a wholesale clothing business across a physical showroom and a Shopify storefront. Before our work, every inventory decision lived in spreadsheets — sales, barcodes, stock and reporting were disconnected.
A full-stack web application built with Next.js, MongoDB Atlas, the Shopify Admin API, a barcode system (bwip-js + BarcodeDetector API) and an analytics dashboard. Products are variant-first; every variant gets an auto-generated SKU and barcode; sales reduce stock everywhere in real time.
Variant-first model. Each variant stores size, cost price, selling price, stock — profit margin is computed automatically.
Every variant gets a unique SKU and a CODE-128 barcode generated via bwip-js, ready to print directly from the dashboard.
USB scanner support on desktop, BarcodeDetector camera scanning on mobile — both open the same popup sales flow with negotiated pricing.
Products & variants push to Shopify as drafts; order webhooks pull sales back. Stock stays consistent in both directions.
Revenue, profit, units sold and remaining inventory — plus daily revenue and profit trends.
Variant-first schema and stateless API routes mean new locations, users and Shopify stores can be onboarded without re-architecting.