Node-RED tutorials
Node-RED tutorials for FairCom Edge
Node-RED works natively with the FairCom JSON DB API. It does not require a driver or custom-built nodes. Database capabilities to Node-RED are enabled by sending simple JSON commands to FairCom Edge
Node-RED works natively with the FairCom JSON DB API. It does not require a driver or custom-built nodes. Database capabilities to Node-RED are enabled by sending simple JSON commands to FairCom Edge.
Ensure the FairCom server is installed and running.
Ensure Node-RED is installed.
Section | Description |
---|---|
Create a session with any of the FairCom JSON APIs. An authenticated session must be created before commands can be sent to a FairCom server. | |
Create a table and an index in a FairCom Edge database. | |
Insert and query records in a FairCom Edge database. |
This FairCom tutorial uses HTTP to communicate with the server on port 8080. Because HTTP is insecure, this port is typically disabled.
Do the following to enable the HTTP protocol on port 8080:
Shut down the FairCom server.
Edit the
services.json
file located in the<faircom>/config
folder.Find the listener service named
"http8080"
.Change
"enabled":false
to"enabled":true
.Restart the FairCom server.
The modified listener configuration object in services.json should look something like this:
{ "serviceName": "http8080", "description": "Port 8080 using insecure HTTP protocol...", "port": 8080, "protocol": "http", "enabled": true }