Web application to interact with IoT hub devices
This repo is published in the docker hub registry as `ridomin/iothubux:latest'
To deploy locally use:
IOT_HUB_CONNECTION_STRING="<your iot hub connection string"
EVENTHUB_CONSUMER_GROUP="<EH consumer group" # defaults to $Default
PORT="<PORT>" # defaults to 3000
docker run -it --rm -p 80:80 \
-e PORT=$PORT -e \
-e IOT_HUB_CONNECTION_STRING="$IOT_HUB_CONNECTIONSTRING" \
-e EVENTHUB_CONSUMER_GROUP="$Default" \
ridomin/iothubux:latest
Assuming you have Node/NPM installed:
export IOTHUB_CONNECTIONSTRING="<your iot hub connection string"
node app.js
$env:IOTHUB_CONNECTIONSTRING="<your iot hub connection string" ; node app.js