Objectives
In this Exercise you will learn how to:
- Install Node-RED locally
- Add required additional nodes
Before you begin:
This Exercise requires that you have:
- completed the pre-requisites required for all labs
Install Node-RED locally
This is a fairly easy step, as you just have to follow this guide: Running Node-RED locally
Once installed and started open the browser and start the Node-RED editor.
This lab is verified on the following configurations
Operating System | Node.js | npm | Node-RED |
---|---|---|---|
MacOS Monterey | 14.18.3 | 6.14.15 | 2.2.0 |
Windows 10 | 16.14.0 | 8.3.1 | 2.2.2 |
Attention
Make sure you are running Node-RED v2+, i.e. if you already have an existing v1 Node-RED instance installed locally then make sure to upgrade it before proceeding.
Add required additional nodes
Before loading the Node-RED script you need to add the required additional node libraries. Node-RED library dependencies: - node-red-dashboard - node-red-contrib-ui-upload - node-red-contrib-chunks-to-lines - node-red-nodes-cf-sqldb-dashdb
- Click on the burger menu in upper right hand corner and select
Manage palette
. - Click on
Install
and writenode-red-dashboard
in the Search field - then click onInstall
. - Click on
Install
again. - Wait until you see the new nodes have been installed.
- Repeat step 2-4 for the other 3 libraries.
Congratulations you have successfully installed and prepared a local instance of Node-RED. You will now be able to get and load the Node-RED script.