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

Enabling the project feature

For example, in situations where you want to manage your own flow while sharing it with others, or you want to update the flow created by others, it is difficult to develop when a team uses only the Node-RED flow editor.

The project function of Node-RED is a method/function for managing the files that are relevant with each flow you make. It covers all the files needed to create applications with Node-RED shareable.

These are supported by the Git repository. That is, all files are versioned. This allows developers to collaborate with other users.

On Node-RED version 1.x, the project feature is disabled by default, so it must be enabled in the config file named settings.js.

Important note

When creating a project in the local environment of Node-RED, the flow created so far may be overwritten with a blank sheet. You can download the JSON files of the flow configurations for all the flows created in this document via the internet, but if the...