I have a web application and on button click I want to run node command. Instead of executing node command on command line, trying to execute it on click of button from front end. ex:- I have a web application and on button click I want to run node command. Instead of executing node command on command line, trying to execute it on click of button from front end.
ex:
$( ".button_class" ).on( "click", function() {
//execute command like : node app.js
});