Section 1: Lab: Installing and Exploring Node-RED 5
- What Node-RED and flow-based programming are used for
- Install Node.js 24 and Node-RED 5 with npm or Docker
- Tour the Node-RED 5 editor: sidebars, the Explorer and the dark theme
- settings.js, the user directory and the Palette Manager
- Export and import flows as JSON files
Section 2: Lab: Flows, Nodes and the Message Object
- The structure of msg, msg.payload and msg.topic
- Core nodes: Inject, Debug, Change, Switch, Template and Delay
- Link nodes, groups and keeping flows readable
- Lab: a flow that receives values, reformats them and routes them by condition
Section 3: Lab: Function Nodes and Context
- Write JavaScript in Function nodes and modify msg properties
- Send to multiple outputs and send several messages
- Keep state with node, flow and global context
- Configure a file-based context store so data survives restarts
- Lab: count readings and compute a moving average of sensor data
Section 4: Lab: Subflows, Environment Variables and Errors
- Build subflows with properties to reuse logic
- Use environment variables to keep settings out of flows
- Handle errors with Catch, Status and Complete nodes
- Lab: a subflow that validates and converts device data for any flow
Section 5: Lab: HTTP Nodes and RESTful APIs
- Call external APIs with the HTTP Request node and parse JSON
- Create HTTP endpoints with HTTP In and HTTP Response
- Design a RESTful API for receiving data from devices
- Lab: an API that receives sensor values and an API that fetches weather data