Not really a question - but did you know that you can run Node-Red in the browser using Stackblitz -
just created a sample repo Node.js (forked) - StackBlitz
based on this sample https://nodered.org/docs/user-guide/runtime/embedding
Not really a question - but did you know that you can run Node-Red in the browser using Stackblitz -
just created a sample repo Node.js (forked) - StackBlitz
based on this sample https://nodered.org/docs/user-guide/runtime/embedding
Interesting! So I could run up a template repo that contained a pre-configured node-red with uibuilder installed along with a simple flow and get people to click on a link to get a completely known environment that runs in their browser and where they can try to reproduce bugs!
Nice
![]()
yes. actually all the sample flows could be spinned up that way and users could start testing them interactive.
I LIKE it - thanks for sharing.
There are pre-configured starter-templates. Maybe node-red could also have one
That would be nice. Though (when I get time!), I'm going to create my own custom one so that I can get people to better test uibuilder. ![]()
JavaScript SDK | StackBlitz Docs - so it looks like this could really be embedded in any website - so wiring up dynamically a node-red stackblitz for every sample flow for example should be possible
Nice,
if you set adminRoot to / and add a "start": "node index.js" to the scripts section of package.json it just fires straight up. Very simple.
I would also add
flowFile: 'flows.json',
flowFilePretty: true,
to the settings section of index.js to stop it creating random flow file names.
Only problem I have with this setup is, that it says "Not started" because I guess express tries to serve the page faster than node-red is spinning up.
Solution could be to start express a little bit later. Is there a callback / promise on the RED object which will be called when it's done spinning up so it can trigger the server startup?
// Start the runtime
RED.start();
setTimeout(() => {
server.listen(8000);
}, 1500)
So you could have Node-RED running inside Node-RED Dashboard, .... ![]()
Your A sick man @TotallyInformation ![]()
What about "editor is not dashboard" now?
Please stop, my brain cannot handle this! ![]()
I might watch inception this weekend! ![]()
I think we need to add "… and the dashboard is not an editor..."