Attention: The code in this repository is intended for experimental use only and is not fully tested, documented, or supported by SingleStore. Visit the SingleStore Forums to ask questions about this repository.
An example repository showcasing data being ingested from a vehicle's ECU and Battery nodes, uploaded to SingleStore, and visualized in a dashboard.
- Docker (or just a MQTT broker)
- Golang 1.22+
- Node.js 20+
Start the MQTT broker
$ docker run -d --name nanomq -p 1883:1883 -p 8083:8083 -p 8883:8883 emqx/nanomq:latest
Start the ingest service (make sure to set your SingleStore database credentials in ingest/db.go
)
$ cd ingest
$ go run .
Start the dashboard
$ cd dashboard
$ npm run dev
Start the test script
$ cd test
$ go run .
Go to http://localhost:5173 and see all your data!