EstateHub

Frontend Architecture

EstateHub includes a Next.js 16.3.3 web application in frontend/. It uses the App Router, TypeScript, Tailwind CSS v4, Base UI/shadcn components, Redux Toolkit with RTK Query, React Hook Form, Zod, Leaflet, Recharts, and Sonner.

Application Areas

AreaImplemented routes
Public marketplaceHomepage, property search, property details, tours, purchase and lease flows, contact, and seller onboarding.
Customer portalDashboard, appointments, saved properties, collections, comparisons, saved searches, messages, deals, profile, and KYC.
Seller portalDashboard, properties, property creation/editing, appointments, messages, notifications, finance, payments, and settings.
Admin portalDashboard, users, verifications, properties, bulk listing actions, messages, notifications, payments, payouts, settings, and integrations.

The Core frontend covers purchase and lease workflows. See Add-ons Overview for upcoming modules.

Integration Boundary

  • Call the role-specific /api/v1 routes exposed by the backend.
  • Send Simple JWT access tokens as bearer credentials on protected requests.
  • Treat Django permissions and service validation as authoritative.
  • Handle the backend success envelope and structured exception responses.
  • Use NEXT_PUBLIC_API_BASE_URL for the REST API base URL and NEXT_PUBLIC_WS_BASE_URL when WebSocket features are enabled.
  • Use the backend /api/v1/uploads/ prepare, complete, delete, and protected-content lifecycle for managed files.
Backend remains authoritative

The frontend presents available workflows, but authentication, permissions, validation, state transitions, and payment decisions are enforced by the Django backend. Do not infer add-on availability from frontend labels or shared enum values.

Development Commands

Run these commands from frontend/:

BASH
pnpm install
pnpm dev
pnpm lint
pnpm build
pnpm start

The repository declares pnpm@11.24.0 as its package manager. Use the lockfile and package-manager version shipped with the release for reproducible installations.