I'm studying javascript/nodeJS to develop ERP solution. I would like to allow ERP end-users to upload their own custom scripts, so they can interact with ERP scripts. Of course user scripts should implement pre-defined ERP API.
For example this is a feature offered by ODOO (open-ERP) using user custom scripts writen in python.
I would like to know if full javascript stack can do the trick: is it possible to import some uploaded js file at runtime in node.js, in order to execute them? Is there any issue with this approach?
eval'd anything javascript related. Or use built-in node modules framework to exhibit required behavior and achieve a degree of self-containment - you can load any .js file as module. - weaknespase