Getting your Grails onTom Henricksen
IT Career Coach, Author, Speaker
Introduction: Tom Henricksen
● 15 Years● MyITCareerCoach.com to help people with
IT
Agenda
1. Groovy Basics2. Groovy Demo3. Grails Basics4. Grails Demo
Groovy Basics1. Dynamic language2. Super set3. Inspired by Python, Ruby, and Smalltalk4. Scripting language
Groovy supports Java1. packages2. imports
a. Default3. exception handling
Groovy Syntaxpublic class HelloWorld { // JAVA
public static void main( String[] args )
System.out.println("Hello World!");
}
}
class HelloWorld { // Groovy
static main( args ){
println ‘Hello World!’
Groovy Syntaxclass 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 Basics2. Groovy Demo3. Grails Basics4. Grails Demo
Groovy DemoGroovy Console
Use Groovy 1. Download @ groovy-lang.org2. Install Groovy3. Enjoy
Agenda
1. Groovy Basics2. Groovy Demo3. Grails Basics4. 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 Basics2. Groovy Demo3. Grails Basics4. Grails Demo
Agenda
1. Groovy Basics2. Groovy Demo3. Grails Basics4. Grails Demo
Conclusion
● Reach out with any questions● Contact me for eBook● Connect to me on LinkedIn, Twitter,
Facebook,Google+