Besides the sample applications featured in the books Beginning Groovy and Grails and The Definitive Guide to Grails, are there any applications out there written in Grails that are good examples from which to learn best practices? Such as real applications that are open-source? Thanks.
Grails is superb because it allows developers to concentrate more on actual application requirements and spend less time configuring the framework. Grails provide tools for development, and it is built based on tools like: Quarts, Hibernate, Spring, and Gradle for library management.
Go to start.grails.org and use the Grails Application Forge to generate your Grails project. You can choose your project type (Application or Plugin), pick a version of Grails, and choose a Profile - then click "Generate Project" to download a ZIP file. No Grails installation necessary!
Grails is based on the convention over configuration idea which allows the application to auto-wire itself based on naming schemes (instead of using configuration files, e.g, XML files). Grails uses JavaEE as the architectural basis and Spring for structuring the application via dependency injection.
During my learning phase, I came across several good sample applications.
This sample web album app got me started on grails. It covers security, image upload / manipulation, basic crud etc.
http://www.syger.it/Tutorials/GrailsWebAlbum.html
Here's one from Glen Smith, author of the upcoming Grails in Action book. The source code to the groovy blog aggregator is located here:
http://code.google.com/p/groovyblogs/
Here's another one by Glen, a blog engine written with grails:
http://code.google.com/p/gravl/
And finally, here's the code to the grails.org site which includes wiki functionality:
http://github.com/grails/grails/tree/master/grails-samples/grails.org/
Yes. IBM has an excellent series of articles building on to a sample application at IBM's developerworks site:
Part I:
http://www.ibm.com/developerworks/java/library/j-grails01158/
The Series: http://www.ibm.com/developerworks/views/java/libraryview.jsp?search_by=mastering+grails
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With