Oct 29, 2018

Creates JavaScript client for RESTful web services with NetBeans

Use the "RESTful JavaScript Client" wizard as shown:


You can choose whether you want to add Backbone.js or not.

You later can select the browser where you'd like to deploy the application.
If you deploy the application to a Chrome browser that has the NetBeans plugin install, you'll see a NetBeans icon that lets you switch to different form factors to check how your user interface will look on different platforms.

In "Inspect in NetBeans Mode", you can see where items defined in the browser are defined back in the IDE. Vice verse, you can browse the live DOM view in the IDE and see where matching items are defined back in the browser.

You can use the Java debugger and the JavaScript debugger at the same time to debug the front-end and back-end simultaneously. Changes you make in Chrome Developer Tools will automatically be saved back in your files in the IDE.

By this way, you can integrate HTML5 front-ends into your Maven Java Web applications. You can choose whether you'd like a JSF front-end (via PrimeFaces or RichFaces, for example) or a JavaScript front-end via Backbone.js or some other JavaScript library. The choice is yours. Whichever approach you choose, NetBeans IDE is a great tool to help.