Skip to content

Latest commit

 

History

History
70 lines (40 loc) · 2.41 KB

README.md

File metadata and controls

70 lines (40 loc) · 2.41 KB

Quick links : Home - Part 1 - Part 2 - Part 3 - Part 4 - Part 5


Part 5 - 12-Factor Apps with Node-RED to take to production

This section looks at creating native cloud applications using Node-RED and how the 12-factor app methodology can be applied to Node-RED.

Setup for part 5

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.

  1. 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)
  2. 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.

One codebase tracked in revision control, many deploys

Explicitly declare and isolate dependencies

III - Config

Store config in the environment

Treat backing services as attached resources

Strictly separate build and run stages

Execute the app as one or more stateless processes

Export services via port binding

Scale out via the process model

Maximize robustness with fast startup and graceful shutdown

Keep development, staging, and production as similar as possible

XI - Logs

Treat logs as event streams

Run admin/management tasks as one-off processes


Quick links : Home - Part 1 - Part 2 - Part 3 - Part 4 - Part 5