roadlabs / node-red-project-template

This is a template for a Node-RED project meant to be run in local mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-red-project-template

This is a template for a Node-RED project meant to be run in local mode. The idea is to run an instance of Node-RED entirely from within a local directory to make it more portable. This also makes running multiple instances of Node-RED at the same time easier.

Node-RED will start with a blank canvas and will save the flow file to flows.json the first time a deploy is done. If you add your own flows.json file it will load that by default.

Usage

mkdir MyNiceProject
cd MyNiceProject
git clone https://github.com/natcl/node-red-project-template.git .
npm install
npm start

When running multiple instances in parallel, you can specify a port:

npm start -- -p 1885

To run a specific flow file:

npm start -- testFlow.json

Dependencies

You can easily add third party nodes by modifying the package.json file. For this template we added the node-red-contrib-ui package.

About

This is a template for a Node-RED project meant to be run in local mode

License:Apache License 2.0


Languages

Language:JavaScript 100.0%