NodeRED/en
Inhaltsverzeichnis
Introduction[Bearbeiten]
Node-RED is a graphical development tool. With Node-RED, use cases for the Internet of Things can be implemented according to a simple modular principle. In Node-RED there are so-called "nodes" which look like as follows. Each node fulfills a certain function e.g. making a HTTP-request.
Preparations[Bearbeiten]
- If you haven't installed Node.js yet download and install it here: https://nodejs.org/en/download/
- Use the command line to verify that Nodejs has been installed correctly.
- To open the command line enter "cmd" in the Windows search bar and press the enter key.
- After you have opened the command line enter "node --version"
- Also enter "npm --version" in the command line.
- Hint: npm usually comes with Node.js
- Internet connection available?
Installing Node-RED[Bearbeiten]
- Open command line
- Enter "npm install -g --unsafe-perm node-red" and press the enter key
- Enter "node-red" and press the enter key to start Node-RED
- Essential step, because this creates the .node-red folder in your user directory which we need for further steps
- After you have started Node-RED open your browser (Chrome, Firefox, Internet Explorer, ...)
- Enter "localhost:1880" into the search bar of your browser and press the enter key
→ Close the browser and the command line
- Open a new command line
- Navigate to the .node-red folder created by the start of Node-RED
- Enter "cd .node-red" and press the enter key
- Enter "npm install node-red-node-test-helper node-red --save-dev" and press the enter key
- Make sure you are in the .node-red folder