Files
lambdaiot-core/readme.md
T
2026-02-08 00:14:10 +01:00

907 B

Lambda-IoT Core

This repository contains a minimal Go REST service used as the backend for the Lambda-IoT project.

Repository: https://git.piskot.si/SeminarM2/lambdaiot-core

Features

  • HTTP API with health, greeting, auth, device CRUD, sensor creation, and MQTT ping
  • JWT-based auth middleware with demo login (admin/password)
  • MQTT client with startup publish and best-effort subscription
  • Multi-stage Dockerfile and Makefile for common tasks
  • test/docker-compose.yml spins up MySQL, Mosquitto, phpMyAdmin, and the server for local integration

Quickstart

Build and run locally:

make build
./bin/server

Run tests:

make test

Build Docker image:

make docker-build

Then run it:

docker run -p 8080:8080 lambdaiot-core:latest

Integration stack (MySQL + Mosquitto + server):

cd test
docker compose up -d --build