Quick links : Home - Part 1 - Part 2 - Part 3 - Part 4 - Part 5
This section looks at creating native cloud applications using Node-RED and how the 12-factor app methodology can be applied to Node-RED.
To complete the practical work in this section you will be working on your local system, so you need to have all the prerequisites installed.
- Run Node-RED locally on your laptop
The instructions in this section assume you have started Node-RED on your local system at least once, which populates the .node-red directory in your user's home directory. If not please start it now:
- In a command window (as your local user - NOT admin) enter command
node-red
- Once Node-RED is running you can stop the server by holding the Ctrl key then pressing the c key (Ctrl-c)
- In a command window (as your local user - NOT admin) enter command
- Run a local broker The example flow in this section connects to a MQTT broker. The linked section shows how to run the Eclipse Mosquitto MQTT broker in Docker on your local system.
I - Codebase
One codebase tracked in revision control, many deploys
II - Dependencies
Explicitly declare and isolate dependencies
III - Config
Store config in the environment
IV - Backing Services
Treat backing services as attached resources
Strictly separate build and run stages
VI - Processes
Execute the app as one or more stateless processes
VII - Port binding
Export services via port binding
VIII - Concurrency
Scale out via the process model
IX - Disposability
Maximize robustness with fast startup and graceful shutdown
X - Dev/prod parity
Keep development, staging, and production as similar as possible
XI - Logs
Treat logs as event streams
XII - Admin processes
Run admin/management tasks as one-off processes
Quick links : Home - Part 1 - Part 2 - Part 3 - Part 4 - Part 5