Hi Guys,
you did a wonderful work with this service mash-up editor. I like the clean and clear UI, the playful look and that you made it open source. :)
I would be glad if you someone can help me. ^^
I use the version 0.7.2 and try to customize Node-RED to handle my own services.
What have i done:
I've a back-end where my services and a user management are stored. Each user has his own services.
Currently i can load my custom nodes into Node-Red and they are displayed in the UI. But that only works when my custom services are imported as nodes before Node-RED starts ( RED.start() ).
The custom services can change. It depends on which user is logged in and on used CRUD operations of the user on his services ( e.g: when a user deletes a service, it has to lead to an update of the Node-RED editor ).
Because of the custom services in the editor can change, i want to refresh the Node-RED editor to be up to date with my services in the back-end. To do that, i request the custom services from my back-end, convert them into the needed .js and .html nodes structure and register them to the Node-RED config ( registry.js ). And at this point i'm stuck.
I've found the Nodes are also handled in "RED.palette" and in "RED.nodes" on the client-side scripts ( "public/red/ui/..." ). When i want to refresh the Node-RED editor, did i have to remove the nodes from these scripts too or are they handled by the Node-RED server? Or i'm on the wrong way?
best regards,
Sebastian