Tutorial by Examples

Note: GRAILS requires a Java JDK installed (a runtime environment JRE is not sufficient) on your system, before setting up Grails. Please refer to, how to install JDK. As of this writing, it is recommended to install the latest JDK. For Mac OSX, Linux, Cygwin, Solaris and FreeBSD: The simplest w...
To create a Grails application, use the grails create-app command. The following command creates a Grails application, named myapp in the current directory: grails create-app fancy-app Running it, is as simple as visiting the, newly created, application directory: cd fancy-app and then grai...
The create-* commands in Grails automatically create unit or integration tests for you within the src/test/groovy directory. It is of course up to you to populate these tests with valid test logic, information on which can be found in the section on Unit and integration tests. To execute tests you ...
A model (see: Model-View-Controller pattern) in Grails is represented by a so-called Domain Class. Domain classes can define both the persistence and presentation of information in grails. Domain classes can also contain validations. To manage a fleet of cars in your Grails application you could de...

Page 1 of 1