Skip to content

md-hub

Hub service that processes CAN controller data and manages MQTT communication between gateways and the cloud.

Stack

  • Language: Java 21
  • Framework: Spring Boot 3.4.5 (Gradle 8.1.14)
  • Database: PostgreSQL + Flyway migrations
  • Auth: Keycloak
  • MQTT: Eclipse Paho v5 + Spring Integration
  • Container: eclipse-temurin:21-jdk-alpine

What It Does

  • Receives and processes CAN data packets from gateways via MQTT
  • Manages door controller settings and phone numbers
  • Bridges communication between md-firmware gateways and md-cloud

Project Structure

src/
  main/
    java/
      modules/
        gatewaydata/       # MQTT gateway data processing
        controllerdata/    # CAN controller data handling
    resources/             # configs
  test/
    java/                  # tests

Dev Setup

Debug port: 9111

Building

bash
./gradlew build

Profiles

dev, test, stage, prod — set via SPRING_PROFILES_ACTIVE.