Skip to the content.

Node-RED Set up and Configuration

Lab Objectives

In this lab you will set up Node-RED.

You will learn:

Introduction

Node-RED is an open-source Node.js application that provides a visual programming editor that makes it easy to wire together flows.

Step 1 - Install Node-RED

You can install Node-RED on your laptop or on a cloud-based virtual machine, for instance hosted on your Microsoft Azure Cloud.

When you start Node-RED:

Step 2 - How to secure your Node-RED Editor

Further steps may be required to secure the editor post installation. Node-RED’s basic Azure installation guide at https://nodered.org/docs/getting-started/azure, for example, deploys with a well know administration password and uses http, which transmits content (including passwords) in clear text. Even for non-production, this is undesirable. Consider the potential impacts from malicious, automated port scanning services seeking servers with default passwords.

Node-Red provide instructions at https://nodered.org/docs/user-guide/runtime/securing-node-red that include:

Consider changing the default user id also.

In this instance, browser warnings about trusting the generated certificates for this development environment can safely be ignored (we trust ourselves). The browser is correctly warning that even though the connection is encrypted against eavesdropping and tampering, it has no way of trusting the certificate and thus the server operators. For larger developments or production systems, this can be resolved using a certificate authority.

https warning

These are basic precautions for non-critical development environments. For production environments, further impact assessment and security hardening should be considered.

Step 3 - How to Install Additional Node-RED Nodes (Information Only)

Most Node-Red instances will allow you to add or remove nodes from the tools menu, just look at the documentation available for your installation. You will be able to search available nodes, by category, and you will be able to install the ones you want, simply by selecting them.

Step 4 - How to Import a Prebuilt Flow from GitHub

In this step, you will learn how to Import a prebuilt flow from GitHub

Node-RED Import

Node-RED Import


Click to return to the Part 3 homepage.