To establish a class domain for tasks issue the following command.
[codesyntax lang=”bash”]
grails create-domain-class tasks
[/codesyntax]
To fill in the details on the domain key in the following.
[codesyntax lang=”bash”]
class Tasks { String name Date startDate Date endDate Boolean comp static constraints = { }
[/codesyntax]
To generate scaffonding for the tasks class issue the following command.
[codesyntax lang=”bash”]
grails generate-all Tasks
[/codesyntax]
now run the app by issuing the following command.
[codesyntax lang=”bash”]
grails run-app
[/codesyntax]
Simply click on the Tasks link.
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.