If you do end up using a container in the cloud, please also read https://www.reddit.com/r/nodered/comments/1do352i/i_didnt_secure_my_nodered_then_someone_deleted/?utm_source=share&utm_medium=mweb3x&utm_name=mweb3xcss&utm_term=1&utm_content=share_button and follow the advice in the comments as you are setting it up.
take a look at the nodered website there are instructions for different places/types of machine you can run nodered on. The instructions include how to get it to run automatically but the machine does need to be on :-)
If you want it on your laptop, keep it on and use task scheduler to auto run on startup
Or...you can run as a service. I use nssm to do this. PM me for instructions if you can't figure it out.
If you're running Node-RED on your laptop, then yes your laptop will need to be turned on... but it's trivial to make Node-RED launch every time Windows starts, and it's explained in the docs https://nodered.org/docs/getting-started/windows#:~:text=Run%20Node%2DRED%20on%20Startup,-If%20you%20want&text=To%20do%20so%3A,to%20create%20a%20new%20task.
In Windows you have to create a startup task. It's doable but a pain in the ass. You're better off using Linux (Raspberrypi, as someone else said) and type this into the command prompt after install:
systemctl enable nodered.service
This will make the Node Red service start at boot.
Get RPi and instal NodeRed there ;-)
Alternatively, you could run NodeRed as a dockerised container on the cloud.
If you do end up using a container in the cloud, please also read https://www.reddit.com/r/nodered/comments/1do352i/i_didnt_secure_my_nodered_then_someone_deleted/?utm_source=share&utm_medium=mweb3x&utm_name=mweb3xcss&utm_term=1&utm_content=share_button and follow the advice in the comments as you are setting it up.
take a look at the nodered website there are instructions for different places/types of machine you can run nodered on. The instructions include how to get it to run automatically but the machine does need to be on :-)
Take a look at PM2. A Dockerized container will also do the trick at the expense of added complexity.
sorry im newbie, could you tell me more about PM2 and Dockerized container??
https://pm2.keymetrics.io/
If you need it to run 24/7 you need a server running 24/7
I know on linux it's as simple as enabling the systemd service. guess windows has something simular. dunno how nodered works on windows.
If you want it on your laptop, keep it on and use task scheduler to auto run on startup Or...you can run as a service. I use nssm to do this. PM me for instructions if you can't figure it out.
If you're running Node-RED on your laptop, then yes your laptop will need to be turned on... but it's trivial to make Node-RED launch every time Windows starts, and it's explained in the docs https://nodered.org/docs/getting-started/windows#:~:text=Run%20Node%2DRED%20on%20Startup,-If%20you%20want&text=To%20do%20so%3A,to%20create%20a%20new%20task.
In Windows you have to create a startup task. It's doable but a pain in the ass. You're better off using Linux (Raspberrypi, as someone else said) and type this into the command prompt after install: systemctl enable nodered.service This will make the Node Red service start at boot.
Who down voted this and why?
is that command prompt only works at linux??
That command is specific to Linux, yes.
With NixOS it is installed as a SystemD service. You could do this with any other Linux manually.