EstateHub

Quick Start — Local

This guide runs EstateHub locally. For an online trial, use Quick Start — Evaluation; for a real launch, use Production Deployment.

EstateHub Core includes a Next.js frontend in frontend/, a Django REST Framework backend in backend/. It uses PostgreSQL as its database.

You can run EstateHub using Docker Compose or through a manual development setup.

Choose a Setup Method

MethodBest for
Docker Compose (Recommended)Quickly running the complete EstateHub stack.
Manual SetupLocal development, debugging, and customization.
1

Choose a setup method

Use Docker Compose for the complete stack, or use the manual setup for development and customization.

2

Configure the environment

Replace your environment's values for backend and frontend with your actual values.

3

Initialize the backend

Apply migrations, initialize checklist data, and create the first administrator account.

4

Start and verify EstateHub

Start the services, open the local application, and complete the checks at the end of this guide.

Protect environment credentials

Never commit .env or .env.local, and never use an environment file containing someone else's real credentials. Commit and distribute only sanitized .env.example templates.

Option 1: Docker Compose

What You Need

  • Docker
  • Docker Compose
  • EstateHub source code
  • Required environment values

1. Configure the Environment

EstateHub uses separate environment files for the backend and frontend.

Copy the supplied templates before starting the containers.

macOS / Linux

BASH
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env

Windows

POWERSHELL
Copy-Item backend/.env.example backend/.env
Copy-Item frontend/.env.example frontend/.env

Replace the required placeholder values in backend/.env and frontend/.env. Set the frontend API URL to http://localhost:8000/api/v1 and the site URL to http://localhost:3000;

Create a root .env beside compose.yaml for Compose interpolation:

DOTENV
DB_NAME=estatehub
DB_USER=estatehub_app
DB_PASSWORD=<unique-local-database-password>

Use the same database name, user, and password in backend/.env. Compose overrides the backend database host to db; the root .env supplies the PostgreSQL container credentials. Keep these files private.

See Configuration for the complete environment reference.

2. Start EstateHub

BASH
docker compose up --build

To run the services in the background:

BASH
docker compose up --build -d

3. Run Database Migrations

The current Compose backend command runs migrations automatically before starting Daphne. You can rerun them explicitly after startup:

BASH
docker compose exec backend python manage.py migrate

4. Initialize EstateHub Data

BASH
docker compose exec backend python manage.py populate_checklists

5. Create the First Administrator

BASH
docker compose exec backend python manage.py createsuperuser

Follow the prompts to create the administrator account.

6. Open EstateHub

Once the services are running:

  • Web Application: http://localhost:3000
  • Backend API: http://localhost:8000
  • Django Admin: http://localhost:8000/admin/

7. Stop EstateHub

BASH
docker compose down
Review Compose before production

Compose is a local convenience entry point, not a production recipe. The Postgres service reads DB_NAME, DB_USER, and DB_PASSWORD from the Compose environment or a root .env, not from backend/.env. The frontend Docker build also needs its public API URL supplied at build time. See the Docker deployment guide before hosting it.

Option 2: Manual Setup

What You Need

  • Node.js compatible with the supplied Next.js package
  • Python 3.12
  • A running PostgreSQL server with an application database and database user
  • pnpm 11.24.0, as declared in frontend/package.json
  • pip
  • EstateHub source code
  • Required environment values

Backend Setup

1. Open the Backend Directory

BASH
cd backend

2. Create a Virtual Environment

BASH
python -m venv .venv

3. Activate the Virtual Environment

macOS / Linux

BASH
source .venv/bin/activate

Windows

POWERSHELL
.venv\Scripts\Activate.ps1

4. Install Backend Dependencies

BASH
python -m pip install -r requirements.txt

5. Configure the Environment

Copy the supplied template in the current backend/ directory:

macOS / Linux

BASH
cp .env.example .env

Windows

POWERSHELL
Copy-Item .env.example .env

Create the PostgreSQL database and user before running migrations; see Database Setup. Replace the template placeholders with values for your local environment:

DOTENV
DJANGO_SETTINGS_MODULE=core.settings.dev
SECRET_KEY=<unique-long-random-value>
ALLOWED_HOSTS=127.0.0.1,localhost

DB_NAME=<postgres-database>
DB_USER=<postgres-user>
DB_PASSWORD=<postgres-password>
DB_HOST=127.0.0.1
DB_PORT=5432

PUBLIC_API_BASE_URL=http://localhost:8000
EMAIL_FRONTEND_URL=http://localhost:3000
CORS_ALLOWED_ORIGINS=http://localhost:3000
CSRF_TRUSTED_ORIGINS=http://localhost:3000

PLATFORM_CONFIG_ENCRYPTION_KEY=<separate-unique-random-value>

See Configuration for the complete environment reference.

6. Run Database Migrations

BASH
python manage.py migrate

7. Initialize EstateHub Data

BASH
python manage.py populate_checklists

8. Create the First Administrator

BASH
python manage.py createsuperuser

9. Start the Backend

BASH
python manage.py runserver

The backend will be available at http://localhost:8000.

Frontend Setup

Open a new terminal at the workspace root while the backend remains running.

1. Open the Frontend Directory

BASH
cd frontend

2. Install Frontend Dependencies

BASH
pnpm install

3. Configure the Environment

Copy the sanitized frontend template:

macOS / Linux

BASH
cp .env.example .env.local

Windows

POWERSHELL
Copy-Item .env.example .env.local

Open .env.local, replace its placeholders with your values, and set the local API and site URLs:

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

The supplied template defaults to a development /api/v2 service. Override it with /api/v1 as shown above to connect to this backend. Restart the frontend after changing .env.local.

See Configuration for the complete frontend environment reference.

4. Start the Frontend

BASH
pnpm dev

The EstateHub web application will be available at http://localhost:3000.

Verify the Setup

After EstateHub is running, confirm that:

  • The web application opens at http://localhost:3000.
  • The backend responds at http://localhost:8000.
  • GET /health/ returns successfully.
  • Django Admin opens at http://localhost:8000/admin/.
  • The EstateHub administrator login at http://localhost:3000/admin/login accepts the account created with createsuperuser.
  • The frontend can communicate with the backend API.
  • Public property data can be retrieved from GET /api/v1/customers/properties/.

For a manual backend setup, also run:

BASH
python manage.py check

An empty property list is expected until listings are approved. The manual runserver command is for HTTP development; use Daphne with core.asgi:application when testing WebSocket chat or notifications.

If these checks pass, your local EstateHub environment is ready.

Next Steps

Continue with: