Skip to Content
Technical GuideOverview

Portal Technical Guide

Source review: e30dd9b47, 2026-11-02. See Coverage for evidence and the limits of this edition. Audience: Frontend Developers

Overview

Portal is a Next.js frontend application that provides property search websites for real estate professionals. The frontend never calls the Repliers MLS API directly: it talks to a proxy backend (NEXT_PUBLIC_API_URL), which forwards requests to the Repliers API. It supports multiple client deployments through a multi-tenant architecture.

Tech Stack

CategoryTechnology
FrameworkNext.js 16 (App Router)
LanguageTypeScript
UI LibraryMUI v7 (Material UI)
StylingEmotion (CSS-in-JS)
MapsMapbox GL, Mapbox GL Draw
FormsReact Hook Form + Joi validation
i18nnext-intl
StateReact Context (Providers)
NodeFrontend engines: 24.x or 26.x
Package ManagerRoot pnpm 12.6.0; frontend package pin 10.34.4

Key Concepts

ConceptDescription
Multi-tenantOne codebase serves multiple branded client sites
Override PatternTenant-specific files override defaults
ProvidersReact Context for global state management
API ServicesModules for Repliers API communication
Feature FlagsToggle features per tenant

For a complete transaction, start with F01–F12 Workflows. For an ownership question, use Rendering, Data Ownership, Route Handlers, Caching, SEO, Forms or Failures.

TopicDescription
ArchitectureMonorepo structure, components, routes
Multi-tenantOverride pattern, path aliases
Content ManagementCMS clients, MDX, fallback system
State ManagementProviders, hooks, context
API ServicesRepliers API, data flow
Data ModelsTypes, transformers
DevelopmentSetup, commands, env vars
ReferenceStatuses, types, flags

Architecture at a Glance

┌─────────────────────────────────────────────────────────────┐ │ PORTAL │ │ (Next.js App) │ ├─────────────────────────────────────────────────────────────┤ │ Components │ Providers │ Services │ Configs │ └──────────────┴─────────────┴────────────┴───────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────────────┐ │ PROXY BACKEND │ │ (NEXT_PUBLIC_API_URL) │ ├─────────────────────────────────────────────────────────────┤ │ Forwards frontend requests to the Repliers API │ └─────────────────────────────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────────────┐ │ REPLIERS API │ ├─────────────────────────────────────────────────────────────┤ │ Listings │ Users │ Favorites │ Estimates │ Search │ └────────────┴─────────┴─────────────┴─────────────┴──────────┘ │ ▼ ┌─────────────────────────────────────────────────────────────┐ │ MLS DATA │ │ (NWMLS, TRREB, CREB, etc.) │ └─────────────────────────────────────────────────────────────┘
Last updated on