Book Image

Practical Node-RED Programming

By : Taiji Hagino
5 (1)
Book Image

Practical Node-RED Programming

5 (1)
By: Taiji Hagino

Overview of this book

Node-RED is a free and open source flow-based programming tool used to handle IoT data that allows programmers of any level to interconnect physical I/O, cloud-based systems, databases, and APIs to build web applications without code. Practical Node-RED Programming is a comprehensive introduction for anyone looking to get up to speed with the Node-RED ecosystem in no time. Complete with hands-on tutorials, projects, and self-assessment questions, this easy-to-follow guide will help you to become well versed in the foundations of Node-RED. You’ll learn how to use Node-RED to handle IoT data and build web applications without having to write complex code. Once you’ve covered the basics, you’ll explore various visual programming techniques and find out how to make sample flows as you cover web development, IoT development, and cloud service connections, and finally build useful real-world applications. By the end of this book, you’ll have learned how to use Node-RED to develop a real-world application from scratch, which can then be implemented in your business.
Table of Contents (19 chapters)
1
Section 1: Node-RED Basics
6
Section 2: Mastering Node-RED
11
Section 3: Practical Matters

Making a sample flow

Now, let's create these two server-side case flows on the Node-RED flow editor.

Please check again that the Cloudant node and the Dashboard node have already been installed on your flow editor. If you don't have them, please install these nodes by following the steps mentioned in the What is the specific situation for using Node-RED on the cloud? section of this chapter.

Now, you need to prepare a specific database for this tutorial on Cloudant. Follow these steps:

  1. Access your IBM Cloud dashboard and click View all from the Resource summary area:

    Figure 6.26 – IBM Cloud dashboard view

  2. You will find the Cloudant service that you created using Node-RED. Please click the service's name:

    Figure 6.27 – Selecting the Cloudant service from the Resource list

  3. Click the Launch Dashboard button at the top left of IBM Cloud:

    Figure 6.28 – Launching the Cloudant dashboard

  4. After launching the Cloudant dashboard, please...