Course in Grails Web Apps

Course in how to quickly build a web app using Groovy and Grails

Time-to-market is an important factor when chosing the technology stack for developing web apps and other software systems. Using the Groovy framework Grails you can design web apps in record time. Do as many others (e.g. LinkedIn, Sky, Vodafone, Nokia and more) start develop web apps swimmingly easy.

Grails is efficient because it builds upon Spring Framework (Spring Boot), Hibernate for object-to-relational mapping and SiteMesh for overall layout management.

After a brief introduction of the Groovy language you will learn everything you need to know in order to get up to speed designing web apps in Groovy/Grails. We do recommend that you take the Groovy Basics course in addition to fully utilize this fascinating language.

This is what you will learn
  • Brief intro to Groovy
  • Dealing with controllers and services
  • Associate classes to database tables
  • Invoke AJAC invocations
Course Contents

Quick intro to Groovy

  • Why Groovy is so much better than Java
  • Installation of Groovy
  • Skip semicolons and stuff
  • Duck typing
  • Groovy strings and beans
  • Built-in data-types, such as lists, maps, ranges and regexes
  • Groovy operators
  • Closures (lambda expressions)
  • Meta-programming

Grails Overview

  • Why Grails makes web development super fast
  • Grails components
  • Installation of Grails
  • Kick-starting a small Grails application

Controllers

  • How a URI is mapped to controllers and actions
  • Rendering HTML
  • Rendering XML
  • Rendering JSON
  • Redirections
  • Implicit variables
  • The flash scope

Groovy Server Pages (GSP)

  • How views are associated with controller actions
  • Implicit variables at GSP pages
  • Including GSP fragments
  • Layouts using SiteMesh

Services

  • What is a service
  • Basic definition
  • Dependency injection of services
  • Scope and life-cycles
  • Transactional services

Tags

  • Logics tags
  • Rendering tags
  • Form tags

i18n

  • What is i18n
  • Setting the locale
  • Message tag
  • Swapping the locale
  • Defining a new messge translation

User-Defined Tags

  • How to define your own tags
  • Namespaces
  • Rendering tags
  • Conditional tags
  • Iterative tags

Domain Classes and GORM

  • What is ORM (Object Relational Mapping)
  • What is Hibernate
  • Creating domain classes
  • Basic CRUD (Create Read Update Delete)
  • Data sources
  • Fetching all or single object
  • Pagination
  • Scaffolding
  • Simple relations
  • Finder queries

GORM Constraints

  • Syntax
  • Overview of constraints
  • How to deal with violations

Configurations

  • YAML vs GroovyConfig configuration files
  • Logging
  • URL mappings
  • Data sources
  • Build dependencies

Grails Plugins

  • Overview of useful plugins and the plugins portal
  • Understanding the differences between plugins for Grails version 2 and version 3
  • Some use cases
Facts
NameGrails Web Apps
Duration5 Days
LevelBeginner
AudienceWeb app developers
PrerequisitesExperience of web app development in Java
Tools
  • Grails, version 3+
  • JetBrains Intellij IDEA
  • Java JDK, version 8+
On-Site Course

If you order an On-Site course, we will come to you and hold the course in your office. The price is determined by our price model and is based on the number of course days, number of participants and any travel and lodging.

Read more about out price modell and term of sales here.

Related Courses
CourseDaysLevel
Groovy3Beginner Show
Spock Testing1 IntermediateShow