docs: removed old AI summaries.
This commit is contained in:
37
readme.md
37
readme.md
@@ -4,46 +4,11 @@ This repository contains a minimal Go REST service used as the backend for the L
|
||||
|
||||
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:
|
||||
|
||||
```bash
|
||||
make build
|
||||
./bin/server
|
||||
```
|
||||
|
||||
Run tests:
|
||||
|
||||
```bash
|
||||
make test
|
||||
```
|
||||
|
||||
Build Docker image:
|
||||
|
||||
```bash
|
||||
make docker-build
|
||||
```
|
||||
|
||||
Then run it:
|
||||
|
||||
```bash
|
||||
docker run -p 8080:8080 lambdaiot-core:latest
|
||||
```
|
||||
|
||||
Integration stack (MySQL + Mosquitto + server):
|
||||
|
||||
```bash
|
||||
cd test
|
||||
docker compose up -d --build
|
||||
podman compose up --build
|
||||
```
|
||||
Reference in New Issue
Block a user