d0c489800d326474d388c44a145cf80aea22e70c
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
DockerfileandMakefilefor common tasks test/docker-compose.ymlspins 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
Description
Languages
Go
95.8%
Python
1.6%
Shell
1.3%
Dockerfile
0.9%
Makefile
0.4%