- docker
- docker-compose
$ make dev
$ make lint
$ make format
$ make test
$ make test.integration
# test watchers
$ make test.web-client.watch
$ make test.thermometer-sensor.watch
$ make test.integration.watch
Start the server:
$ make dev
Then, try this address on your browser: http://localhost:3000
Ingest random data to simulate different temperature ranges:
- Check the list of measured temperatures in http://localhost:8080/thermometer-sensor
- Grab some random
uuid
(e.g.:c2997731-db64-4e37-ad1b-8537c07f31c2
) and and trigger the following POST request from your terminal:
$ curl -H "Content-Type: application/json" \
-d '{"uuid": "c2997731-db64-4e37-ad1b-8537c07f31c2", "currentTemperature": 15, "idealTemperatureRange": { "min": -5, "max": 8 }}' \
http://localhost:8080/thermometer-sensor
Please note that the endpoint must contain all data regarding the sensor, even though they might sound duplicate (e.g. idealTemperatureRange
).