How to connect to the database
Now that the database has actually been created, we will move toward the hands-on tutorial, where we will clone the Node-RED flow from GitHub, and implement the connection to that database from the Node-RED flow. Use the project feature you learned in the previous chapter to connect to your GitHub repository, load the prepared flow definition file, and implement it on Node-RED in your local environment. Since you have already done this in the previous chapter, it is not necessary to create a new flow this time.
Configuring Node-RED
The first thing you need to do is change the localhost path (URL) of the Node-RED flow editor. Currently, you can access the flow editor at localhost:1880
, but in order to change the path (URL) of the web application created by this hands-on tutorial to localhost:1880
, we need to change the path of the flow editor to localhost:1880/admin
.
This is because you have to move the root path of the Node-RED flow editor to...