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
| Method | Best for |
|---|---|
| Docker Compose (Recommended) | Quickly running the complete EstateHub stack. |
| Manual Setup | Local development, debugging, and customization. |
Choose a setup method
Use Docker Compose for the complete stack, or use the manual setup for development and customization.
Configure the environment
Replace your environment's values for backend and frontend with your actual values.
Initialize the backend
Apply migrations, initialize checklist data, and create the first administrator account.
Start and verify EstateHub
Start the services, open the local application, and complete the checks at the end of this guide.
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
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.envWindows
Copy-Item backend/.env.example backend/.env
Copy-Item frontend/.env.example frontend/.envReplace 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:
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
docker compose up --buildTo run the services in the background:
docker compose up --build -d3. Run Database Migrations
The current Compose backend command runs migrations automatically before starting Daphne. You can rerun them explicitly after startup:
docker compose exec backend python manage.py migrate4. Initialize EstateHub Data
docker compose exec backend python manage.py populate_checklists5. Create the First Administrator
docker compose exec backend python manage.py createsuperuserFollow 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
docker compose downCompose 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
cd backend2. Create a Virtual Environment
python -m venv .venv3. Activate the Virtual Environment
macOS / Linux
source .venv/bin/activateWindows
.venv\Scripts\Activate.ps14. Install Backend Dependencies
python -m pip install -r requirements.txt5. Configure the Environment
Copy the supplied template in the current backend/ directory:
macOS / Linux
cp .env.example .envWindows
Copy-Item .env.example .envCreate the PostgreSQL database and user before running migrations; see Database Setup. Replace the template placeholders with values for your local environment:
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
python manage.py migrate7. Initialize EstateHub Data
python manage.py populate_checklists8. Create the First Administrator
python manage.py createsuperuser9. Start the Backend
python manage.py runserverThe 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
cd frontend2. Install Frontend Dependencies
pnpm install3. Configure the Environment
Copy the sanitized frontend template:
macOS / Linux
cp .env.example .env.localWindows
Copy-Item .env.example .env.localOpen .env.local, replace its placeholders with your values, and set the local
API and site URLs:
NEXT_PUBLIC_API_BASE_URL=http://localhost:8000/api/v1
NEXT_PUBLIC_SITE_URL=http://localhost:3000The 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
pnpm devThe 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/loginaccepts the account created withcreatesuperuser. - 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:
python manage.py checkAn 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:
- Product Quick Start — configure the platform and try a listing workflow
- System Architecture — understand how the frontend and backend fit together
- API Overview — explore the EstateHub API
- Quick Start — Evaluation — host an online trial before planning a production launch