EstateHub

Frontend Setup

Run the Next.js application from frontend/. Before starting, install Node.js and the package-manager version declared in frontend/package.json; use the shipped lockfile. Prepare the backend using Backend Setup.

Install Dependencies

BASH
cd frontend
pnpm install

Configure Local URLs

Create frontend/.env.local:

DOTENV
NEXT_PUBLIC_API_BASE_URL=http://127.0.0.1:8000/api/v1
NEXT_PUBLIC_SITE_URL=http://localhost:3000

The supplied environment template points to a development /api/v2 service. If NEXT_PUBLIC_API_BASE_URL is unset, the code falls back to http://localhost:8000/api/v1. Set the API URL explicitly for your environment; the backend in this release exposes /api/v1. NEXT_PUBLIC_WS_BASE_URL is optional when WebSockets share the API host.

Run the Application

BASH
pnpm dev

Open http://localhost:3000 and confirm public listings load. The backend must allow http://localhost:3000 in its CORS settings. Open /admin/login using the administrator created during backend setup.

Validate a Frontend Change

BASH
pnpm lint
pnpm build

Public variables are embedded at build time. Set them before a production build and rebuild when they change. Never put service credentials in NEXT_PUBLIC_* variables.

See Frontend Architecture and Environment Variables.