We designed and built a full-stack B2B ordering portal from the ground up using Next.js for the frontend and NestJS (Node.js) for the backend, with PostgreSQL as the primary database and Redis for session management and caching.
The platform has two distinct interfaces. The Dealer Portal gives each of Parrot Hosiery's 120+ wholesale accounts a personalised dashboard where they can browse the live product catalogue, place bulk orders with volume-based pricing automatically applied, track dispatch status in real time, and view their complete order and payment history. The Admin Dashboard gives the factory team a command centre — live order queue, inventory levels synced with the warehouse, dispatch management with automated label generation, payment reconciliation with outstanding balance tracking, and analytics on ordering patterns by dealer, region, and season.
The catalogue system was built with Elasticsearch powering search and filtering across hundreds of product variants (vest types, sizes, pack quantities), making it fast for dealers to find and reorder their regular items. We implemented a role-based authentication system so dealers see only their negotiated pricing, while the admin team has full visibility.
Inventory management was connected to the factory floor through a simple stock update interface that warehouse staff use on tablets. When stock runs low, the system automatically flags it and prevents overselling — a problem that had plagued the WhatsApp-era ordering.
Payments were integrated through Razorpay for digital settlements, but we also built a manual payment recording system (for bank transfers and cash) with automated receipt generation. The WhatsApp Business API was integrated for automated order confirmations, dispatch notifications, and payment reminders — meeting dealers where they already were.
The entire platform was deployed on AWS (EC2 for compute, S3 for assets, CloudFront for CDN) with automated backups and monitoring.