Enlighten

Groovy and Grails Training Course

Groovy and Grails: Agile Web Application Development

Course Overview

This Groovy and Grails training course aims to provide a pragmatic, comprehensive introduction into Web application development with Groovy and Grails. Via a 50:50 mixture of presentation and hands-on exercises, attendees gain an in depth understanding and appreciation of the extensive power and rapid development cycle Grails offers. This course is suitable for software engineers, programmers, Web developers and managers who wish to learn about the power of both Groovy and Grails and how to work with them effectively. It is expected that all attendees have a knowledge of Web application development and a solid knowledge of programming with Java.

On completion of this course attendees will

  • Effectively build scalable Web 2.0 applications using Groovy and the Grails framework
  • Master and utilise the productivity benefits of the Groovy dynamic programming language
  • Short-cut development timescales with Grails 'out of the box' functionality and domain specific langauages (DSL)
  • Build Rich Web 2.0 user interfaces incorporating social networking, mashups, AJAX/JSON and animation effects

Course duration: 3 days

Course Contents

Architecture of Grails Applications
  • Why Grails - problems addressed
  • Grails architecture
  • Agile development and Testing
  • Installing Ruby and Rails
  • Hello World with Grails
  • Development environments
Groovy Language Essentials
  • Comparing Groovy with Java
  • Groovy basics
  • Closures
  • Collections
  • Expando objects
  • Ranges
  • Exceptions
Up and Running with Grails (High level view)
  • Creating a new application
  • Request URL structure
  • Linking pages together
  • Inserting into a database
  • Validation
Building an Application Repository
  • Mapping classes to tables
  • Creating, reading, updating and deleting records
  • Relationships between tables
  • Transaction control
  • Aggregation
  • Inheritance
  • Validation
  • Querying with HQL, by example and by criteria
  • Querying with dynamic finders
Generating interfaces with Scaffolding
  • Dynamic and static scaffolding
  • Generating CRUD support
  • Overriding basic operations
  • Applying constraints to input
Controller Details
  • Architecture and essentials
  • Role of controllers
  • Accessing submitted data
  • Data binding and custom binders
  • Performing redirects
  • Applying common functionality with AOP
  • File uploads
Rendering the View
  • Groovy Server Page structure
  • Page directives and scriptlets
  • Cleaning the structure with tags
  • Dynamic tags
  • Controlling layouts and themes
  • Building custom tags
Testing
  • Effective testing
  • Using mock objects and test data
  • Functional testing with webTEST
Ajax
  • Ajax in action
  • Remote linking to Groovy objects
  • Applying effects
  • JavaScript events
  • Cleaner Ajax with jQuery
Integrating with Java
  • Dependency injection with Spring
  • Accessing Java objects
  • Applying Spring security
  • Scheduling task execution

Course Dates

On Site

This course is delivered on-site only.

For more details contact sales on 0116 2387669 or submit an enquiry online