/node-red-template

A template for self-contained node-red nodeenv

Primary LanguageCApache License 2.0Apache-2.0

What is this?

This repo contains a development template for node-red with a whole bunch of extra nodes pre-installed.

It uses 'nodeenv' (which is similar in function to Python's 'virtualenv') to isolate the development environment. This should simplify dev configuration and deployment, with the side benefit of avoiding global npm package pollution.

How do I use it?

I've written a few bash scripts that set things up, add extra nodes and start up the node-red server with the correct user and settings locations passed in. You will need to have an up-to-date version of grunt installed. To use:

You should find your flows saved to the base directory (i.e. node-red-template, if you haven't renamed). To exit the node virtual environment:

  • deactivate_node