Sample project using the Custom Node.js Java buildpack.
Java will run the BeanShell's bsh-2.0b6.jar file and interprets the scripts submitted.
- Make sure you have at least Node 4.3.
node --version - Clone this repo and change directory to it.
npm install- Install java locally
- Run the server with:
npm startornode index.js - Server should run on port
3000e.g:http://localhost:3000 - By default it will use a path of / or /index for the main form.
- Clone the repo and change directory to it
- Update
manifest.ymland change the host to your preferred host - Deploy the app to Bluemix:
cf push
-
Go to the
http://hostname.mybluemix.net/orhttp://hostname.mybluemix.net/index -
Fill in the
Java Codefield, for example
System.out.println("HelloWorld");-
Click Execute
-
Result / Error will be shown below
