Create your own framework: Node-Red. First steps
10 December, 2018 by
Create your own framework: Node-Red. First steps
Alejandro Jabalquinto


This post, it will be shown the first steps that must be taken into consideration in order to install and start working with Node-Red.



Panel PC (with Linux):    Panel PC  

Node-Red:                             Node Red


Node-red is a framework thought for an IoT solution. The framework is programmed using a graphical interface. In this post, we are going to focus on the first steps a user must know to start a node-red project.


- Run


Now you can go to http://localhost:1880  and start editing flows


- Create a new node

Prepare the environment:

mkdir testNode
cd testNode/
npm init -y


edit package.json and add a “node-red” section:

“node-red”: {
       “nodes”: {
              “testNode”: “testNode.js”


edit testNode.js:

module.exports = function(RED) {
    function TestNode(config) {
       RED.nodes.createNode(this, config);
       node.on("input",function(msg) {
           msg.payload = "test-node-value";
    RED.nodes.registerType("testNode", TestNode);

edit testNode.html
    <script type="text/javascript">
    category: 'function',
    color: '#aa0099',
    name: {vfalue:""}
    label: function() {
    return || "test node";

    <script type="text/x-red" data-template-name="testNode">
    <div class="form-row">
             <label for="node-input-name"><i
    class="icon-tag></i> Name</label>
                     <input type="text" id="node-input-name"

    <script type="text/X-red" data-help-name="lower-case">
    <p>A simple node that converts the message payload to a test string</p>


- Utility

Create a node template:

node-red-create-node <NodeName>

- Deploy locally

sudo npm link
cd ~/.node-red/
npm link TestNode

Now you can edit it and use changes only restarting node-red.


- Settings

vi ~/.node-red/settings.json

uiPort number 
httpAdminRoot false|path
disableEditor true|false
pathadminAuth object



Create your own framework: Node-Red. First steps
Alejandro Jabalquinto
10 December, 2018
Share this post

Looking for your ideal Programmable Logic Controller?

Take a look at this product comparison with other industrial controllers Arduino-based. 

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.

Industrial PLC comparison >>>

Do you want more information?

Just fill the form!

Tell me more!