Skip to content
stackly.dev

Stylehaus

An editorial-grade, microservices-powered D2C fashion platform engineered for the Indian market.

Client
Stylehaus
Category
D2C e-commerce platform
Status
In progress
Practice
Web

AOverview

Stylehaus is a luxury direct-to-consumer clothing storefront and admin ecosystem, built to handle high-concurrency retail workflows with strict financial accuracy.

The storefront is editorial by design: generous whitespace, Fraunces serif display type, Inter body copy and imagery-first layouts. Behind it sits a fault-tolerant, event-driven microservices backend.

BWhat we built

5 things that matter.

  1. 01

    Twelve services, one monorepo

    Twelve independent FastAPI services (gateway, auth, catalog, inventory, cart, pricing, order, payment, search, media, notification and an admin BFF), each owning an isolated PostgreSQL schema.

  2. 02

    An event-driven checkout saga

    Synchronous REST through an API gateway, plus asynchronous domain events over Redis Streams: order created, payment captured or failed, stock reserved or released, product updated. Compensating events keep everything consistent when a step fails.

  3. 03

    Money is computed on the server, in paise

    All pricing runs server-side, in integer paise, through a dedicated pricing service. Every write endpoint and every event consumer is idempotent.

  4. 04

    Built for India from day one

    INR handling, pincode serviceability checks, Razorpay (Orders API, Checkout.js, webhooks with real HMAC verification, Refunds API) and GST-compliant invoicing with HSN codes.

  5. 05

    Tested end to end

    At least 80% line coverage per service, with unit, API, component, end-to-end and OpenAPI contract tests running in CI.

CStack

Stack

Frontend

  • Next.js 15
  • React 19
  • TypeScript
  • Tailwind CSS
  • shadcn/ui
  • Framer Motion
  • Embla Carousel

Backend

  • Python 3.12
  • FastAPI
  • SQLAlchemy 2.0
  • Alembic
  • Pydantic v2
  • ARQ

Data & infrastructure

  • PostgreSQL 16
  • Redis 7
  • Cloudflare R2
  • Resend
  • Docker
  • Kubernetes
  • GitHub Actions

Testing

  • Pytest
  • Vitest
  • Testing Library
  • Playwright
  • Schemathesis