Skip to content

Onboarding Guide ​

Welcome to the Real Estate Sovereign Data Space Platform! This guide will walk you through setting up your development environment, deploying your first instance, and understanding the core concepts.

Prerequisites ​

Before you begin, ensure you have the following installed:

Required Software ​

ToolVersionPurpose
Node.js≥ 22.0.0JavaScript runtime
pnpm≥ 9.6.0Package manager
Docker≥ 25.0Container runtime
Docker Compose≥ 2.24Multi-container orchestration
Git≥ 2.40Version control
Make≥ 4.3Build automation
  • VS Code with extensions: TypeScript, Vue, ESLint, Prettier, Docker
  • Postman or Insomnia for API testing
  • TablePlus or DBeaver for database management
  • Redis Insight for Redis monitoring

System Requirements ​

  • RAM: Minimum 16 GB (32 GB recommended for full stack)
  • Disk: Minimum 50 GB free space
  • CPU: 4+ cores recommended
  • OS: Linux, macOS, or Windows with WSL2

Quick Start ​

1. Clone the Repository ​

bash
git clone https://github.com/real-estate-data-space/platform.git
cd platform

2. Install Dependencies ​

bash
pnpm install

3. Configure Environment ​

bash
cp .env.example .env
# Edit .env with your configuration

4. Start Infrastructure ​

bash
pnpm docker:up

This starts:

  • PostgreSQL 16 with TimescaleDB
  • Redis 7 Cluster
  • MinIO (S3-compatible storage)
  • Apache Kafka + Kafka UI
  • Keycloak (Identity Provider)
  • Traefik (Reverse Proxy)
  • Prometheus + Grafana + Loki + Tempo

5. Build and Start Services ​

bash
pnpm build
pnpm dev

6. Verify Installation ​

Open your browser and navigate to:

ServiceURLCredentials
Documentationhttp://localhost:3000-
Operator Consolehttp://localhost:3001admin / changeme
Developer Consolehttp://localhost:3002admin / changeme
Keycloak Adminhttp://localhost:8080admin / admin
Grafanahttp://localhost:3003admin / admin
Kafka UIhttp://localhost:3004-
MinIO Consolehttp://localhost:9001minioadmin / minioadmin

Architecture Overview ​

mermaid
graph LR
    subgraph Dev[Development Environment]
        IDE[IDE / Editor]
        CLI[Terminal]
        Browser[Browser]
    end

    subgraph Local[Local Stack]
        API[Real Estate API :4000]
        EDC[EDC-V :8081]
        XRoad[X-Road :4001]
        MCP[MCP Gateway :4002]
    end

    subgraph Infra[Infrastructure]
        PG[(PostgreSQL :5432)]
        Redis[(Redis :6379)]
        MinIO[MinIO :9000]
        Kafka[Kafka :9092]
        Keycloak[Keycloak :8080]
        Traefik[Traefik :80/:443]
    end

    Dev --> Local
    Local --> Infra

Core Components ​

  1. Real Estate API - REST/GraphQL API for real estate data management
  2. EDC-V Connector - Eclipse Dataspace Connector for sovereign data exchange
  3. X-Road Security Server - Cross-organization secure communication
  4. MCP Gateway - Model Context Protocol for AI agent integration
  5. Operator Backend - Administrative APIs and workflows
  6. Integration Adapters - Connectors for external systems (cadastre, notaries, banks)

First Deployment ​

Development Deployment ​

bash
# Start all services in development mode
make dev

# Or start specific services
make dev-api        # Real Estate API only
make dev-edc        # EDC-V only
make dev-infra      # Infrastructure only

Production Deployment ​

bash
# Build production images
make docker-build-prod

# Deploy with docker-compose
docker compose -f infrastructure/docker/docker-compose.prod.yml up -d

# Run database migrations
make db:migrate

# Seed initial data
make db:seed

Kubernetes Deployment (Production) ​

bash
# Install dependencies
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update

# Deploy platform
helm install real-estate-platform ./infrastructure/helm/real-estate-platform \
  --namespace real-estate \
  --create-namespace \
  --values ./infrastructure/helm/values-prod.yaml

Configuration ​

Environment Variables ​

Key configuration options in .env:

bash
# Database
DATABASE_URL=postgresql://user:pass@localhost:5432/real_estate
DATABASE_POOL_SIZE=20

# Redis
REDIS_URL=redis://localhost:6379
REDIS_CLUSTER_ENABLED=false

# Keycloak
KEYCLOAK_URL=`http://localhost:8080`
KEYCLOAK_REALM=real-estate
KEYCLOAK_CLIENT_ID=real-estate-api
KEYCLOAK_CLIENT_SECRET=your-secret

# EDC-V
EDC_VAULT_URL=`http://localhost:8081`
EDC_MANAGEMENT_URL=`http://localhost:8082`
EDC_PROTOCOL_URL=`http://localhost:8083`

# X-Road
XROAD_SECURITY_SERVER_URL=`http://localhost:4001`
XROAD_CENTER_URL=https://central.x-road.global

# MinIO/S3
MINIO_ENDPOINT=`http://localhost:9000`
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin
MINIO_BUCKET=real-estate-assets

# Kafka
KAFKA_BROKERS=localhost:9092
KAFKA_CLIENT_ID=real-estate-platform

# Monitoring
PROMETHEUS_URL=`http://localhost:9090`
GRAFANA_URL=`http://localhost:3003`
JAEGER_URL=`http://localhost:16686`

Feature Flags ​

Enable/disable features via environment variables:

bash
FEATURE_EDC_CATALOG=true
FEATURE_EDC_CONTRACTING=true
FEATURE_EDC_TRANSFER=true
FEATURE_XROAD_ENABLED=true
FEATURE_MCP_ENABLED=true
FEATURE_OPEN_BANKING=false
FEATURE_ADVANCED_ANALYTICS=false

Verification ​

Health Checks ​

bash
# Check all services
make health-check

# Individual service checks
curl `http://localhost:4000`/health
curl `http://localhost:8081`/health
curl `http://localhost:4001`/health

API Verification ​

bash
# Get API info
curl `http://localhost:4000`/api/info

# Test authentication
curl -H "Authorization: Bearer <token>" `http://localhost:4000`/api/v1/participants

# Test EDC-V catalog
curl `http://localhost:8081`/api/v1/catalog/request \
  -H "Content-Type: application/json" \
  -d '{"@context": "https://w3id.org/dspace/2024/1/context.json"}'

Database Verification ​

bash
# Connect to database
psql $DATABASE_URL

# Check tables
\dt

# Check migrations
SELECT * FROM _migrations ORDER BY executed_at DESC LIMIT 10;

Next Steps ​

For Developers ​

  1. Architecture Overview - Understand system design
  2. API Contracts - Learn the API specifications
  3. Data Model - Explore domain entities
  4. API Reference - TypeScript definitions and schemas

For Operators ​

  1. Runbook - Operational procedures
  2. Monitoring - Observability setup
  3. Backup & Restore - Disaster recovery
  4. Security - Security configuration

For Compliance Officers ​

  1. Compliance Overview - Regulatory landscape
  2. GDPR - Data protection implementation
  3. DORA - Digital operational resilience
  4. Audit Checklists - Compliance verification

Advanced Topics ​

Troubleshooting ​

Common Issues ​

IssueSolution
Port conflictsCheck docker ps and stop conflicting services
Database connection failedVerify DATABASE_URL and that PostgreSQL is healthy
Keycloak not accessibleCheck Keycloak logs: docker logs keycloak
EDC-V not startingVerify vault and management URLs in .env
Build failuresRun pnpm clean && pnpm install && pnpm build

Getting Help ​