Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.
This instance is running as an IBM Cloud application, giving it access to the wide range of services available on the platform.
More information about Node-RED, including documentation, can be found at nodered.org.
This instance of Node-RED is enough to get you started creating flows.
You may want to customise it for your needs, for example replacing this introduction page with your own, adding http authentication to the flow editor or adding new nodes to the palette.
To start customising your instance of Node-RED, you can either download the application locally or use IBM DevOps Services to edit and deploy your changes directly.
When you first ran this application you were presented with some options to secure the editor. To change those options,
you can set some environment variables from either the Bluemix console or the cf
command-line
The environment variables you can set are:
NODE_RED_USERNAME
- the username to secure the editor withNODE_RED_PASSWORD
- the password to secure the editor withNODE_RED_GUEST_USER
- set to true
to allow anonymous users to have read-only access to the editorSave
and restart your applicationcf
command-linecf set-env [APPLICATION_NAME] [ENV_VAR_NAME] [ENV_VAR_VALUE]
When you first ran this application you were presented with an option to enable monitoring of your Node-RED
flows using the Application Metrics for Node.js
dashboard. To change those options, you can set an environment variable from either the Bluemix console or the cf
command-line
When enabled, the Application Metrics for Node.js dashboard will be available at
The environment variable you can set is:
NODE_RED_USE_APPMETRICS
- set to true
to enable Application Metrics for Node.js
monitoring. Set to false
to disable.
Save
and restart your applicationcf
command-linecf set-env [APPLICATION_NAME] [ENV_VAR_NAME] [ENV_VAR_VALUE]
There is a growing collection of additional nodes that can be added to the Node-RED editor. You can search for available nodes on the Node-RED library.
To add a node to the editor you can either use the Palette Manager feature within the editor itself or manually edit the package.json
file.
install
package.json
package.json
and add the required node package to the dependencies
section. The format is:
"node-red-node-package-name":"x.x.x"Where
x.x.x
is the desired version number.
The application's package.json
is setup to grab the latest stable release of Node-RED.
To trigger an upgrade following a new release being made available:
NODE_MODULES_CACHE
environment variable to false
. You can either
do this on your application's Bluemix console page (Runtime -> Environment Variables), or by
using the cf
command-line:
cf set-env [APPLICATION_NAME] NODE_MODULES_CACHE false
cf
command-line should be used:
cf restage [APPLICATION_NAME]
The page you are reading now is served as static content from the application. This can be replaced
with whatever content you want in the public
directory.
In the file bluemix-settings.js
, delete the httpStatic
and httpAdminRoot
entries.
Node-RED is a visual wiring tool for the Internet of Things.
A project of the JS Foundation.