Getting your Grails on
Tom Henricksen
IT Career Coach, Author, Speaker
Introduction: Tom Henricksen
● 15 Years
● MyITCareerCoach.com to help people with
IT
Agenda
1. Groovy Basics
2. Groovy Demo
3. Grails Basics
4. Grails Demo
Groovy Basics
1. Dynamic language
2. Super set
3. Inspired by Python, Ruby, and Smalltalk
4. Scripting language
Groovy supports Java
1. packages
2. imports
a. Default
3. exception handling
Groovy Syntax
public class HelloWorld { // JAVA
public static void main( String[] args )
System.out.println("Hello World!");
}
}
class HelloWorld { // Groovy
static main( args ){
println ‘Hello World!’
Groovy Syntax
class HelloWorld {
def greet( name ){
"Hello ${name}!"
}
}
def hm = new HelloWorld()
println hm.greet("Groovy")
Groovy Syntax
// Single line comments start with two forward slashes
/*
Multi line comments look like this.
*/
def technologies = []
technologies.add("Grails")
def clos = { println "Hello World!" }
Groovy Tools
● groovyc
● groovysh
● groovy
● groovyconsole
Agenda
1. Groovy Basics
2. Groovy Demo
3. Grails Basics
4. Grails Demo
Groovy Demo
Groovy Console
Use Groovy
1. Download @ groovy-lang.org
2. Install Groovy
3. Enjoy
Agenda
1. Groovy Basics
2. Groovy Demo
3. Grails Basics
4. Grails Demo
Grails Basics
● MVC Framework
○ Spring
○ Hibernate
○ SiteMesh
● Tomcat
Convention Over Configuration
● Full-Stack Consistency
● Intuitive Code Association
● Mapping Files
Model View Controller
● Model - GORM
● View - SiteMesh
● Controller - Spring
Grails Object Relational Mapper
● Hibernate
● Mappings
● Finders
Agenda
1. Groovy Basics
2. Groovy Demo
3. Grails Basics
4. Grails Demo
Grails Demo
Agenda
1. Groovy Basics
2. Groovy Demo
3. Grails Basics
4. Grails Demo
Conclusion
● Reach out with any questions
● Contact me for eBook
● Connect to me on LinkedIn, Twitter,
Facebook,Google+

Getting your Grails on