sensorHUBBackend

Backend Service

API and service orchestration layer for the SensorHub platform.

Overview

The backend service provides:

  • RESTful API endpoints
  • Data processing and orchestration
  • Database management
  • Integration with external services
  • Authentication and authorization enforcement

Technology Stack

  • Node.js runtime
  • Express or similar web framework
  • PostgreSQL and/or MySQL databases
  • Message queuing (if applicable)
  • Docker containerization

Key Responsibilities

  • Handling sensor data ingestion
  • Processing and transforming data
  • Managing user and device permissions
  • Providing APIs for the frontend
  • Integrating with Keycloak for authentication

Database

The backend manages data across:

  • Primary Database: PostgreSQL or MySQL for relational data
  • User Management: Delegated to Keycloak
  • Audit Logs: Centralized audit trail service

Deployment

Containerized service deployed via Docker Compose with:

  • Exposed API ports
  • Environment-based configuration
  • Integration with monitoring stack
  • Automated restart policies

Configuration

Service configuration via environment variables and configuration files. See Environment for details.