Docker, Gulp, Node-RED, undocumentation

Development of node-red nodes w. docker has one big issue

Its a common known design decision by the Docker team that they don’t want to have support for symbolic links in their volumes, which means that using the Node-RED docker images while developing Node-RED nodes has a critical flaw since it means that the approach recommended by the Node-RED team which involves creating symbolic links to the source directory from the root of the Node-RED runtime.

Gulp to the rescue… Just setup a pre-launch Gulp script to copy the contents into the root of the Node-RED instance.

import {Gulp} from "gulp";

let gulp:Gulp = require(‘gulp’);

gulp.task(‘default’, function () {
return gulp
.src([‘../../your_project/**/*’])
.pipe(gulp
.dest(‘./node_modules/your_project’));
});

Node-RED, Uncategorized

Node-RED Email Validator

As an experiment to get re-familiarized with Node-RED as part of research for a new type of software, I implemented a small utility node for simple Email Validation.