Next.js
Node.js Express
Subscriptions
OTP authentication
Karachi fulfilment UX
Overview
The Corporate Lunchbox (TCLB) markets chef-driven corporate meals with transparent pricing in PKR, emphasising kitchen quality, delivery reliability, accessibility, and farm-fresh sourcing. The product blends storytelling with transactional depth so visitors can educate themselves—then assemble multi-week subscriptions without leaving trust-focused flows.
Challenge
- Guide users through nuanced configuration: selectable subscription weeks, weekdays, anchors for start dates, calorie visibility, promotions, taxes, fees, and order summaries denominated in PKR.
- Support frictionless onboarding for recurring corporate buyers—including phone/password login pathways and OTP verification—to reduce drop-off between intent and fulfilment.
- Keep marketing presentation snappy thanks to optimised imagery sourced from Next’s asset pipeline.
- Maintain a secure boundary between storefront rendering and transactional systems by isolating fulfilment-critical operations inside Express-managed APIs.
Solution
We implemented a modular architecture: Next.js renders public marketing pages, sliders, FAQs, testimonials, nutrition positioning, plus client-side journeys for configuring meal plans—while authenticated calls fan out to a Node.js Express backend exposing REST endpoints for catalog rules, carts, OTP exchanges, promotions, checkout orchestration, and profile/address repositories. Separation keeps UI iteration fast yet preserves consistent validation, logging, rate limits, and integration hooks behind one API façade.
Visual: production banner asset bundled via Next (
_next/static/media/mbanner1) from
thecorporatelunchbox.com, illustrating carousel-driven storytelling above primary CTAs.
Key features delivered
- Plan builder UX: Package selection, “meals of the day”, subscription weekdays, selectable commitment length (multi-week ladders), totals with delivery fee logic, calorie rollups, PKR denomination.
- Customer accounts: Login, OTP confirmation, onboarding forms (email, phone, organisation details), persisted sessions cooperating with Express session/JWT patterns as appropriate.
- Fulfilment data capture: Multiple delivery addresses with landmark specificity, fulfilment disclaimers where separate orders split locations.
- Growth instrumentation: Analytics and tag manager scaffolding matching marketing requirements surfaced in-page.
Languages & technology stack
Frontend
Next.js (React) with optimised image helpers, modular CSS bundles, swiper-driven creatives, SSR/ISR patterns tuned for TCLB journeys.
Backend
Node.js Express services with structured routing, validators, OTP handlers, transactional persistence, webhook readiness for PSPs/logistics partners.
Data & integration
Document/relational datastore for plans, memberships, carts, auditing; guarded secrets for OTP/SMS gateways; reusable DTO contracts between tiers.
Ops
Environment-based configuration per stage, graceful error surfaces for Karachi operations staff, CDN-friendly frontend artifacts.
Outcome
TCLB now operates a differentiated corporate meal storefront that pairs conversion-led storytelling with secure subscription mechanics. Next.js empowers marketing velocity; Express safeguards business rules—letting TCLB onboard enterprises without sacrificing engineering rigour as SKU counts and promotions scale.