Tuesday, January 5, 2010

Grails Cheat Sheet

Happy New Year! After a couple weeks of over-doing eating and vegetating, I dropped my mother off at the airport this morning and am jumping back into Grails. Unfortunately, um... I forgot most of what I picked up in December. To help me out, I'm creating a cheat sheet. So I will probably be editing this post to keep the information in one place.

Keystrokes (case sensitive):
  • ctrl-alt-G => open the Grails command line from within Eclipse
  • ctrl-space => auto-suggest
Commands
  • compile => (re)compiles the Grails Application
  • run-app => compiles then executes the current Grails project (development)
  • create-domain-class [class] => create a domain object (lower-case, singular)
  • create-controller [controller] => create a controller (lower-case, singular)
  • generate-all [Class] => generate default controller and view for the domain object
  • install-templates => generates the scaffolding templates for customization
  • install-plugin gwt => readies your application for use with GWT (or any other plugin like Hibernate)
  • create-service [class] => creates a service for the class (lower-case)
  • create-gwt-module => creates a GWT EntryPoint application
  • create-get-page => creates an HTML/GSP page to associate with the module EntryPoint
  • run-gwt-client => opens the GWT client manager and starts the Hosted Mode browser
  • compile-gwt-modules => (re)compiles GWT code. Required if you want to refresh the browser with new GWT functionality
Tutorials

No comments:

Post a Comment