Running HTML Applications
You can run your HTML/JS applications in Codenvy at Run > Run Application. When the app is started you will find a notification with the application URL in the Output tab:
[INFO] Application app-xam90fc0padqfmcf started on http://codenvy.com/ide/codenvy/_htmlapprunner/app-xam90fc0padqfmcf/
If you introduce some changes to the app, you can save the file and refresh the application page to preview them. There’s no need to re-run the app in this case. If you are done with previewing, stop the application at Run > Stop Application.
Preview HTML Pages
As seen in the code above, HTML document has a reference to a script.js file
A simple alert box has been added to script. js
alert("Hello! I am an alert box!!");
Now, when previewing HTML an alert box from script.js shows up first:
Previewing HTML/JS pages is similar to running them, although it happens right in your Codenvy workspace, not in a browser’s tab.