Basic HelloWorld example for GWT
The application gwt-boot-sample-basic uses integrated Jetty server from GWT to deliver the HTML host file. This can be done with other Servlet apps as well. This webapp also uses GWT Boot modules.
First generate the GWT Module Descriptor and then run the GWT Dev Mode in SuperDev mode to be able to compile the Java code to JavaScript code on reload in the web browser. In Maven you can run following command:
mvn gwt:generate-module gwt:devmode
You can just generate the module once and after that just run:
mvn gwt:devmode
Now you can copy&paste the "Copy to Clipboard" result of the GWT Development Mode UI above. Run it on:
http://localhost:8888/basic
Just reload your web app and GWT SuperDev mode will transpile your Java code to JavaScript on the fly. That's it, now you can develop your web app with GWT incrementally and fast!
You can debug the Java code on the browser with the help of source maps. In this example we use Google Chrome.
Enjoy!