Web

Skylark Men's Wear

Skylark Men's Wear is a full-stack ERP platform built for a real boutique tailoring business, digitizing their entire garment lifecycle from measurement intake to delivery. It replaces a paper-and-WhatsApp workflow with a structured, multi-role system that gives the owner, workers, and customers live visibility into every order.

The Problem

Skylark Men's Wear managed orders via paper registers and informal WhatsApp messages, causing frequent status confusion, missed deadlines, and customer complaints. There was no structured way to record custom measurements, track which stage a garment was in, or notify customers automatically. Expansion to multiple workers amplified these coordination failures.

The Solution

A complete ERP built on Next.js with role-based portals for Owner (full control), Worker (task management), and Customer (order tracking). Orders flow through 6 explicit stages with database-enforced transitions. Baileys WhatsApp integration fires automated notifications at each stage change. A loyalty points engine rewards repeat customers, and PDF invoice generation eliminates manual billing.

Key Features

6-Stage Order Lifecycle: PENDING → MEASURING → CUTTING → STITCHING → READY → DELIVERED
Role-Based Portals for Owner, Worker, and Customer
Dynamic garment measurement storage per customer
Automated WhatsApp notifications via Baileys
Loyalty points engine with redemption
PDF invoice generation
PWA with offline support
Custom JWT authentication (no third-party auth service)

Challenges & Learnings

Integrating Baileys (unofficial WhatsApp Web API) required managing a persistent QR-auth session across Next.js serverless functions — solved by running Baileys as a long-lived Node.js sidecar process. Prisma 7's new query engine brought breaking changes to migration workflows that required careful schema versioning. Neon PostgreSQL's connection pooling needed tuning to prevent connection exhaustion under concurrent order updates.

Business Impact

Deployed to production for Skylark Men's Wear. Eliminated all paper-based order tracking, reduced customer inquiry calls by ~70% (customers self-serve status), and cut order processing errors to zero. WhatsApp automation saved the owner 2+ hours per day.

Future Direction

Analytics dashboard for revenue trends and fabric inventory management, integration with UPI payment gateways for deposits, and a multi-store mode for franchise expansion.

Tech Stack

Next.js 16Prisma 7Neon PostgreSQLTailwind CSSshadcn/uiBaileys (WhatsApp)JWT AuthVercel

Quick Links

Want to see more of my work?

Back to Projects