JSRunner Server:
It is a REST API wrapper around javax.script.ScriptEngine, that provides capabilities via API:
1) Run the JavaScript code in the body of the request in Nashorn (java 8) and return the output of the script (or error message) to the console in the response body.
2) View the status of the script (completed successfully, with an error, executed, in the queue) and its console output.
3) Complete the hung scripts forcibly.
Requests can come in parallel, and the script can be executed for a long time, and maybe even hang, for example, in an infinite loop. These cases are handled correctly.
This app based on Spring Boot and asynchronous REST API approach.
JSRunner Client:
Standalone application, based on Spring Boot and AngularJS frameworks. It provides user-friendly interface to use the capabilities of the JSRunner Server application.