Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including generator-az-iot-gw-module with all npm packages installed. Try it out:

var generatorAzIotGwModule = require("generator-az-iot-gw-module")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

generator-az-iot-gw-module v1.2.0

Create a Node module for azure iot edge.

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Azure IoT Edge Module Generator

generator-az-iot-gw-module creates a base template to start a new edge module in Node.js.

Prerequisites

  1. Install latest Node LTS.
  2. npm install -g yo
  3. npm install -g generator-az-iot-gw-module

Usage

$yo az-iot-gw-module

Note that this template will generate files in the current directory, so be sure always to run it against a new directory

Running module(s) on edge

Once the project is scaffolded, at the root folder run:

$npm install
$npm start

Further Steps

  1. Modify the source code of printer.js and sensor.js to provide more features.
  2. Refer to NODE Module Sample to learn how to connect to Azure IoT Hub.
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free