This document discusses Grooscript, a library that converts Groovy code to JavaScript. It can be used with Node.js or Grails frameworks. The document demonstrates how to set up the Grooscript Gradle plugin to convert Groovy files to JavaScript and integrate Grooscript templates and websockets in a Grails 3 application. It also shows how to create Grooscript components and access remote REST resources from Groovy code.
3. About grooscript
Apache 2 library
In github, contribute!
Groovy code to javascript
Just a tool, not a framework
Use with Node.js or other java frameworks
Last version 1.2.3
16. Remote model
package rest
import grails.rest.Resource
@Resource(uri='/books', formats=['json'])
class Book {
String title
String author
}
* only json