Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to build Node-RED environment in visual interface development

Shulou Source: shulou.com Published: 2022-06-01 14:30:36 10月03日 Update

This article introduces how to build the Node-RED environment in visual interface development. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.

Guide reading

Now there are more and more non-professional background but enthusiastic creative Maker, want to enter the field of the Internet of things, but often suffer from being unable to write obscure program code. IBM released an open source visual interface development tool, Node-RED, to meet their need to quickly connect hardware and devices to Web services and other software. With the continuous development of Node-RED, it has rapidly developed an important and growing user base and an active developer community, and it is constantly developing new nodes to support programmers to use Node-RED to accomplish a variety of tasks. This time I will teach you how to build the environment of Node-RED on WIN10.

01

Download Node.js

Download node.js from the Node.js official website, install node.js and automatically install npm.

The installation process is basically straightforward "NEXT".

(the installation msi file of windows will directly add the system variable of path in the process, and the value of the variable is your installation path, such as "C:\ Program Files\ nodejs")

02

Check whether the environment has been installed

You can use cmd (win+r and then enter cmd to enter) to test whether NodeJS is installed successfully. Type node-v under cmd, and the following version prompts you to complete the installation of NodeJS.

Type "npm-v" on the cmd command line to test whether the installation was successful. As shown in the following figure, the version prompt will be OK.

At this point, the installation of Node.js is complete.

03

Install Node-RED

Install Node-RED as a global module and add the command node-red to your system path. Execute the following command under cmd: npm install-g-- unsafe-perm node-red

When the installation is complete, you can run Node-RED

04

Run Node-RED

After installation, the easy way to run Node-RED is to use the node-red command from a command prompt.

After typing, enter http://127.0.0.1:1880/ in the browser address bar to enter Node-RED.

On how to build a visual interface in the Node-RED environment is shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Development command environment input interface visualization constant prompt run success content more version program system path process help test good Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno macOS NVidia Shulou Information Apple