It requires Grails 2.4+, asset-pipeline and cache plugin.
Use your groovy code in your gsp's, your code, converted to javascript, will run in your browser.
Guide to use Rest support.
Info websocket support.
Generate javascript files with:
groovy generateGrooscriptGrailsJs.groovy
To run tests, need PhantomJs installed, set path in Config.groovy