docs: clean up docs structure
This commit is contained in:
+1048
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
# Lambda-IoT Core
|
# Lambda IoT Core
|
||||||
|
|
||||||
This repository contains a minimal Go REST service used as the backend for the Lambda-IoT project.
|
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
|
Repository: https://git.piskot.si/SeminarM2/lambdaiot-core
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -1,24 +0,0 @@
|
|||||||
# Test compose
|
|
||||||
|
|
||||||
This folder contains a simple Docker Compose stack to run the Go server together with a MySQL database, an MQTT broker, and a Python subscriber client.
|
|
||||||
|
|
||||||
Quickstart:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd test
|
|
||||||
docker compose up --build
|
|
||||||
```
|
|
||||||
|
|
||||||
- The Go server is built from the repository `Dockerfile` and is configured via environment variables in `docker-compose.yml`.
|
|
||||||
- The MySQL database is initialized with the schema from `../ai-improved.sql`.
|
|
||||||
- The MQTT broker is `eclipse-mosquitto` and is exposed on port `1883`.
|
|
||||||
- The `subscriber` service runs `subscribe.py` and prints any messages published to the `lambdaiot` topic.
|
|
||||||
|
|
||||||
To run the Python subscriber locally instead of in Docker:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
python3 -m venv .venv
|
|
||||||
source .venv/bin/activate
|
|
||||||
pip install -r requirements.txt
|
|
||||||
MQTT_BROKER=localhost:1883 MQTT_TOPIC=lambdaiot python subscribe.py
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user