views:

3986

answers:

7

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.

+8  A: 

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

Brian
+1  A: 

A very good series that builds a sample app: http://www.ibm.com/developerworks/views/java/libraryview.jsp?search_by=mastering+grails

Ray Tayek
+9  A: 

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/

Walter
+4  A: 

Check out the Grails Crowd. It is open source

Dmitriy Kopylenko
+3  A: 

If you are interested in seeing an application which is pre-built which also incorporates the Grails specific testing practices and approaches (as well as some widely practised testing methods as used within Grails), the Winelovers application outlines a fully working app and a number of different testing angles which can be applied to create confidence and increase testing coverage for your apps.

https://svn.energizedwork.com/skunkworks/grails/WineLovers/

There is also a presentation which accompanies this which goes into samples and pros and cons.

I will be following up this work with a greater number of examples and further tutorial type updates to help draw out the benefits of testing this way and this much.

j pimmel
The first link has an extra http:// in front of it.
Frederic Daoud
Wow, great presentation. Thanks!
mbrevoort
A: 

I second the IBM series Ray Tayek mentioned, and the energizedwork.com example j pimmel mentioned. The latter has been my reference manual for writing well-tested code and I can't live without it.

hendrixski
A: 

... have you looked at weceem? http://www.weceem.org/weceem/

vector