Skip to content
All work

Professional · Dapper · 2025

Multi-market platform

Three country-specific apps consolidated into one feature-flag-driven codebase, as the platform grew from 3 to 10+ markets.

Before → After3 Country app → One codebase (Configuration, Feature flags) → 10+ marketsBEFORECountry app 1Country app 2Country app 3AFTERONE CODEBASEUI + featuresConfigurationFeature flags10+ markets
Architecture sketch — Conceptual diagram; not the production architecture. Scroll sideways to see the full diagram.

My role

I led the consolidation of the country-specific frontends.

Problem

The B2B SaaS platform ran as three separate country applications. Each new market meant more duplication, and expanding became harder with every copy.

Approach

Merge the three repositories into a single codebase where country differences live in configuration and feature flags instead of in forks of the code.

Technical highlights

  • Country behavior is expressed as configuration and feature flags, so a new market is a configuration concern rather than a new application.
  • REST integrations with the Django backend are type-safe, generated with Orval and consumed through TanStack Query, giving every feature the same data-fetching pattern.
  • A suite of 100+ automated tests (Vitest and React Testing Library) runs in GitHub Actions CI/CD, which makes a shared codebase safe to change.
  • Authentication uses NextAuth and JWT.

Stack

React · Next.js · TypeScript · TanStack Query · Orval · Vitest · GitHub Actions

Outcome

The core consolidation took about one month. Over roughly six months the platform grew from 3 to 10+ Latin American markets. This case study is intentionally high level; implementation details are confidential.