We have partnered with DZone to launch a new series: The Grails Quickcasts, led by the core OCI Grails Team– the folks who make the framework!
These bite-sized Grails tutorials highlight productivity tips to help maximize developer productivity with the framework.
Be sure to check back often for new Grails Quickcasts!
In the first video, Jeff talks Grails interceptors. (Yes,
create-interceptor actually creates an interceptor. Mind. Blown.)
This Quickcast assumes only basic familiarity with Groovy (which is pretty darn expressive anyway) and the MVC concept (which you already know). Also serves as an excellent introduction to the interceptor pattern in any language, because Grails' behind-the-scenes legwork lets you focus on the logic of the pattern.
In a delightful and informative 15 minutes, Brown probes JSON views. Beginning with a Grails 3.1.1 application, created with a standard web profile, Brown added a few custom domain classes. The artist class has albums associated with it, and is annotated with grails.rest.Resource.
This Quickcast assumes basic knowledge of Grails, JSON, and REST APIs.
In this Quickcast, Graeme Rocher, Head of Grails Development at OCI, walks you through multi-project builds in Grails. Grails does a few handy things with multi-project builds and plugins, not the least of which being that Grails compiles your plugins first and puts the class and resources of those plugins directly in the classpath. This lets you make changes to your plugins and instantly see those changes in your build.
In this Quickcast, OCI Engineer James Kleeh walks you through using the Angular Scaffolding for Grails to build a fully functional web app, using a simple blog format for demonstration. The tutorial explains how to have Grails set up a REST endpoint and all the Angular modules needed to get the web app running.
Retrieving Runtime Config Values in Grails 3
In the fifth Grails QuickCast, Grails co-founder, Jeff Scott Brown, highlights some of the great features of the Grails framework. In less than 18 minutes, Jeff describes several techniques for retrieving configuration values at runtime, and discusses the pros and cons of these different techniques.
For this Quickcast, you’ll need no more than a basic understanding of Grails.
Visit the OCI Grails Team Blog for an accompanying article.
Developing Grails 3 Applications in Intellij IDEA
In the sixth Grails QuickCast, Grails co-founder, Jeff Scott Brown, introduces several tips and tricks related to building Grails 3 applications in IDEA. The Grails Quickcast series is brought to you from OCI and DZone.
Grails 3 is a high productivity framework for building web applications for the JVM. IntelliJ IDEA is a high productivity Integrated Development Environment (IDE) for building a variety of types of applications. IDEA has always had really great support for building Grails applications and, in particular, has the very best support of any IDE for doing development with Grails 3.
Logging with Grails 3
Grails 3 is a super high-productivity framework for building web applications for the JVM.
This Quickcast, by Sergio del Amo Caballero, introduces several tips and tricks related to logging with a Grails 3 application. It discusses the changes to logger names in Grails 3.3 and things to bear in mind when logging in Grails artifacts and Groovy POGOs. Moreover, it explains the benefits of using Slf4j, parameterized logging, how to configure rolling logging, how to use an external configuration file, etc.
Grails React Profile
Learn how to use the Grails 3 React profile – a profile for creating Grails applications with a React frontend.
In this Quickcast, Zachary Klein, member of the Grails OCI Team, shows how to use React profile. In particular, he shows how to create a single project build which allows you to mix React code with common Grails view technologies, such as GSP. Moreover, he discusses the different Gradle tasks bundled with the profile and the typical workflow you may use while using the profile.
GORM Many-to-One Relationship: Replacing a Collection
GORM, a powerful Groovy-based data access toolkit for the JVM, enables to create many-to-one relationships with ease.
In this Quickcast, Sergio Del Amo Caballero, member of the Grails OCI Team, explains how to replace a many-to-one collection efficiently by using a minimal number of queries or leveraging cascade behavior.
Request Grails Services
If you're looking for technical support, join the Grails Community Slack Channel, where more than 3,500 Grails developers, including key members of the OCI Grails team, gather around the clock to answer questions and share ideas.