Skip to main content

Installing a Node-RED server

There are two ways to deploy Node-RED applications:

Installing Node-RED locally

You can install Node-RED locally on your computer. The following steps are presented to help you quickly run through the process.
For more information, see the related topic in the official IBM documentation: https://nodered.org/docs/getting-started/local

  1. Download and install the latest nodeJS from: https://nodejs.org/en/
    img

  2. Open a command prompt and install the Node-RED package using the following command: npm install -g --unsafe-perm node-red img

  3. Run Node-Red using the following command: node-red img

  4. Open Node-RED entering this URL in your web browser: http://127.0.0.1:1880 img

Installing Node-RED on IBM Cloud

Alternatively to install Node-RED locally, you can install it on IBM Cloud. The following steps are presented to help you quickly run through the process.
For more information, see the related topic in the official IBM documentation: https://nodered.org/docs/getting-started/ibmcloud

  1. Go to https://cloud.ibm.com, and click Create an account. Then fill in the form and verify your e-mail. img

  2. Log in to IBM Cloud using your new account at: https://cloud.ibm.com img

  3. Navigate to Catalog > Featured, then search for . img

  4. This presents you with the Node-RED starter kit:

    • It gives you a Node-RED instance running as a Cloud Foundry application. It also provides a Cloudant database instance and a collection of nodes that make it easy to access various IBM Cloud services.

    • Click Get started. img

  5. In the form that displays, fill in the App name with a name you want for your application. img

  6. Click Create and wait for a few minutes until the application has been created. img -> Once the App has been created, you will see the following screen: img

  7. Click Deploy your app, then in IBM Cloud API key select Cloud Foundry for your deployment target. img

  8. In the IBM Cloud API key area, click New + to generate a new API key, then click OK. img

  9. In Region, select the region you want for the deployment. img

  10. In Host, write a host name and click Next.The host name must be unique. img

  11. In Region, select the region of your DevOps toolchain and click Create. Wait a few minutes until the deployment is finished. img

  12. In the following screen that appears, verify:

    • In the Delivery Pipelines area: Status must appear as Success.

    • In the Details area: App URL must display a valid URL. img

  13. In App URL, click the URL.

-> Your new Node-RED instance on IBM Cloud opens. img

  1. Click Next and fill in the form with your Node-RED credentials. img

  2. In the screen that displays, read the text, and click Next. img

  3. Read the text and click Finish. img

  4. In the screen that displays, read the text and click Go to your Node-RED flow editor. img

-> Your Node-RED flow editor opens. img