Groovy and Grails Development
Contact Us for Dates
5 days practical workshop for up to 12 people.
Only £1975 per person
Contact us for Onsite Price
Groovy is a popular open-source dynamic language targeting the JVM. Groovy uses a familiar Java-like syntax that will be comfortable for existing Java developers, and provides many features found in other dynamic languages such as Ruby and Python.
Layout
This course is a mixture of lectures and hands on exercises designed to reinforce the topics learnt
Training Course Objectives
- Understanding the role of Groovy and Grails
- Writing clean code in Groovy
- Defining a user interface in Grails
- Building domains and services in Grails
- Implementing security
- Working with web services
- Reporting and batch processing
Training Course Prerequisites
- Solid Java language experience
- Familiarity with Spring Web would be advantageous but is not a requirement
Chapters
Chapter 1 Introduction to Groovy
- Groovy language features
- Setting up a Groovy environment
- Simple Groovy examples
- Key differences between Java and Groovy
Chapter 2 Groovy Essential Syntax
- Scripts
- Assertions
- Strings
- Methods and closures
- Operators
- Arrays
- Collections
- Regular expressions
Chapter 3 Going Further with Groovy Syntax
- Domain-Specific Languages
- Unit testing
- XML support
Chapter 4 Getting Started with Grails
- Overview of Grails
- Grails architecture
- Setting up a Grails environment
- Scaffolding
- Controllers and domain classes
Chapter 5 Defining a User Interface with Grails
- Defining the overall look-and-feel
- Defining actions and views
- Integration testing
- Validating user input
- Defining filters and action interceptors
Chapter 6 Building Domains and Services
- Overview of GORM
- Creating domain objects
- Performing validation
- Database queries
- Creating and calling a service
- Injecting services
- Supporting transactions
Chapter 7 Implementing Security in Grails
- Getting started with authentication and authorization
- Understanding Grails security concepts
- JSecurity
- CAS
- Spring Security
Chapter 8 Using Ajax with Grails
- Ajax frameworks
- Uses of Ajax
- Tag libraries
- RSS support
Chapter 9 Using Web Services
- Overview of RESTful Web services
- Implementing RESTful services in Grails
- Invoking RESTful services from the UI
Chapter 10 Reporting
- Overview of reporting
- Installing JasperReports and iReports
- Creating a report
- Using the Report tag
- Using ReportController and ReportService
Chapter 11 Batch Processing
- Overview of batch processing
- Creating a job
- Building a batch-reporting solution