To initiate the compile step issue the following command.
[codesyntax lang=”bash”]
grails compile
[/codesyntax]
To create the domain class issue the following command.
[codesyntax lang=”bash”]
grails create-domain-class ttd
[/codesyntax]
Navigate to the following domain and modify it to reflect the following.
[codesyntax lang=”cpp”]
package demo01 class Ttd { String name Date startDate Date endDate Boolean comp static constraints = { name() startDate() endDate() comp() }
} [/codesyntax] Generate CRUD scaffolding by issuing the following command. [codesyntax lang="bash"]
grails generate-all ttd
[/codesyntax]
To run the app issue the following command.
[codesyntax lang=”php”]
grails run-app
[/codesyntax]
[codesyntax lang=”bash”]
| Running application... Grails application running at http://localhost:8080 in environment: development <===========--> 85% EXECUTING [1m 7s] > :bootRun
[/codesyntax]
Click on the controller above to reval the next offering.
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.