Appearance
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
| Tool | Version | Purpose |
|---|---|---|
| Node.js | ≥ 22.0.0 | JavaScript runtime |
| pnpm | ≥ 9.6.0 | Package manager |
| Docker | ≥ 25.0 | Container runtime |
| Docker Compose | ≥ 2.24 | Multi-container orchestration |
| Git | ≥ 2.40 | Version control |
| Make | ≥ 4.3 | Build automation |
Recommended Tools
- 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 platform2. Install Dependencies
bash
pnpm install3. Configure Environment
bash
cp .env.example .env
# Edit .env with your configuration4. Start Infrastructure
bash
pnpm docker:upThis 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 dev6. Verify Installation
Open your browser and navigate to:
| Service | URL | Credentials |
|---|---|---|
| Documentation | http://localhost:3000 | - |
| Operator Console | http://localhost:3001 | admin / changeme |
| Developer Console | http://localhost:3002 | admin / changeme |
| Keycloak Admin | http://localhost:8080 | admin / admin |
| Grafana | http://localhost:3003 | admin / admin |
| Kafka UI | http://localhost:3004 | - |
| MinIO Console | http://localhost:9001 | minioadmin / 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 --> InfraCore Components
- Real Estate API - REST/GraphQL API for real estate data management
- EDC-V Connector - Eclipse Dataspace Connector for sovereign data exchange
- X-Road Security Server - Cross-organization secure communication
- MCP Gateway - Model Context Protocol for AI agent integration
- Operator Backend - Administrative APIs and workflows
- 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 onlyProduction 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:seedKubernetes 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.yamlConfiguration
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=falseVerification
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`/healthAPI 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
- Architecture Overview - Understand system design
- API Contracts - Learn the API specifications
- Data Model - Explore domain entities
- API Reference - TypeScript definitions and schemas
For Operators
- Runbook - Operational procedures
- Monitoring - Observability setup
- Backup & Restore - Disaster recovery
- Security - Security configuration
For Compliance Officers
- Compliance Overview - Regulatory landscape
- GDPR - Data protection implementation
- DORA - Digital operational resilience
- Audit Checklists - Compliance verification
Advanced Topics
- Custom Connectors - Build integration adapters
- Policy Development - Create ODRL policies
- Multi-tenancy - Configure participant contexts
- Performance Tuning - Optimize for scale
Troubleshooting
Common Issues
| Issue | Solution |
|---|---|
| Port conflicts | Check docker ps and stop conflicting services |
| Database connection failed | Verify DATABASE_URL and that PostgreSQL is healthy |
| Keycloak not accessible | Check Keycloak logs: docker logs keycloak |
| EDC-V not starting | Verify vault and management URLs in .env |
| Build failures | Run pnpm clean && pnpm install && pnpm build |
Getting Help
- Documentation Issues: GitHub Issues
- Discord Community: Join Discord
- Email Support: support@real-estate-data-space.io
- Security Issues: security@real-estate-data-space.io (PGP key available)