SlideShare a Scribd company logo
© SpringPeople Software Private Limited, All Rights Reserved.© SpringPeople Software Private Limited, All Rights Reserved.
Introduction to
© SpringPeople Software Private Limited, All Rights Reserved.
What is Groovy?
Groovy is a dynamic, object-oriented
language for the Java Virtual Machine,
which builds on the strengths of Java but
has additional features inspired by
languages such as Python, Ruby, and
Smalltalk.
© SpringPeople Software Private Limited, All Rights Reserved.
What is Grails?
Grails is an open source web application
framework that leverages the Groovy
language and complements Java web
development. Grails is a standalone
development environment that can hide all
configuration details or allow integration of
Java business logic. It provides easy-to-use
tools to build web applications in Groovy.
© SpringPeople Software Private Limited, All Rights Reserved.
Grails Architecture
© SpringPeople Software Private Limited, All Rights Reserved.
Groovy Testing
• Groovy is a scripting language that is executed as Java Byte
Code.
• This allows a Mix & Match between Groovy and Java Code.
• Groovy comes with an AntBuilder that allows execution of Ant
scripts from usual Groovy code. This capability allows
executing WebTests, since WebTests are usual Ant tasks.
• By executing WebTest from a Groovy script, you can fully
leverage both the variety of WebTest steps and the
sophisticated language means of Groovy for structuring your
tests.
© SpringPeople Software Private Limited, All Rights Reserved.
Grails Controller
• A controller fulfils the C in the Model View Controller
(MVC) pattern and is responsible for handling web
requests. In Grails a controller is a class with a name that
ends in the convention "Controller" and lives in the grails-
app/controllers directory. A controller can be created
with the create-controller
Command: grails create-controller org.bookstore.hello
© SpringPeople Software Private Limited, All Rights Reserved.
Manage Databases
• Grails is really easy to get started with on green-field projects
because the domain model defines the database schema, so you
don't have to worry about that side of things. But what if you need
to work against an existing database? In that case, you have to
carefully map the domain classes yourself. If you have a large
schema, that could take a while.
• What about when new versions of your application go live? You
can't limit the application to the original schema used for the first
version, otherwise it wouldn't be able to evolve properly. You have
to be able to migrate the schema and also any existing data. Both
of these scenarios have corresponding plugins that can help solve
the problems.
© SpringPeople Software Private Limited, All Rights Reserved.
• Remember to check in your migrations.
• You can preview changelogs and changesets
• Always check your migrations
• Resetting locks
• You can use Sql to assign default values to new
columns
Data migration tips & tricks
© SpringPeople Software Private Limited, All Rights Reserved.
Grails Service Layer
• Grails defines the notion of a service layer. The Grails
team discourages the embedding of core application
logic inside controllers, as it does not promote reuse
and a clean separation of concerns. Services in Grails
are the place to put the majority of the logic in your
application, leaving controllers responsible for
handling request flow with redirects and so on.
Command: grails create-service helloworld.simple
© SpringPeople Software Private Limited, All Rights Reserved.
How you can master
Groovy and Grails?
Become an expert in 4 days.
World class Groovy And Grails training by the industry
experts.
More Details
© SpringPeople Software Private Limited, All Rights Reserved.
Suggested Audience & Other Details
• Prerequisites: Experience with developing application using
Java, Basic web technologies such as HTML and HTTP
• Suggested Audience:
– This training is designed for developers and architects interested in
Groovy and Grails.
• Duration – 4 Days
Syllabus
© SpringPeople Software Private Limited, All Rights Reserved.
For further info/assistance contact
training@springpeople.com
+91 80 656 79700
www.springpeople.com
Our Partners

More Related Content

What's hot (20)

PDF
SpringPeople Introduction to Spring Framework
SpringPeople
 
PDF
SpringPeople Building Web Sites with ASP.NET MVC FRAMEWORK
SpringPeople
 
PPTX
Angular js
Athira Mukundan
 
PDF
Fundamental Spring Boot: Keep it Simple, Get it Right, Be Productive and Have...
VMware Tanzu
 
PDF
Microservices Testing at Scale
VMware Tanzu
 
PDF
A quick introduction to Strapi CMS
Ashokkumar T A
 
PPTX
AngularJS Anatomy & Directives
Digikrit
 
PDF
From GitHub Source to GitHub Release: Free CICD Pipelines For JavaFX Apps
Bruno Borges
 
PPTX
Visual Studio Code for Java and Spring Developers
Bruno Borges
 
PDF
Resilient and Adaptable Systems with Cloud Native APIs
VMware Tanzu
 
PPTX
FAST for SharePoint Deep Dive
neil_richards
 
PPTX
Deep Dive into Salesforce APIs
NeerajKumar1965
 
PPTX
Warsaw MuleSoft Meetup #6 - CI/CD
Patryk Bandurski
 
PDF
EVOLVE'14 | Enhance | Anshul Chhabra & Akhil Aggrawal | Cisco - AEM High Avai...
Evolve The Adobe Digital Marketing Community
 
PDF
Serverless Architecture Patterns - Manoj Ganapathi - Serverless Summit
CodeOps Technologies LLP
 
PDF
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
Jitendra Bafna
 
PDF
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
Jitendra Bafna
 
PPTX
Meetup_Bangalore_Rajesh
D.Rajesh Kumar
 
PDF
Taking Spring Apps for a Spin on Microsoft Azure Cloud
Bruno Borges
 
PPTX
Mule soft meetup_-_finland_july_11th__2020
D.Rajesh Kumar
 
SpringPeople Introduction to Spring Framework
SpringPeople
 
SpringPeople Building Web Sites with ASP.NET MVC FRAMEWORK
SpringPeople
 
Angular js
Athira Mukundan
 
Fundamental Spring Boot: Keep it Simple, Get it Right, Be Productive and Have...
VMware Tanzu
 
Microservices Testing at Scale
VMware Tanzu
 
A quick introduction to Strapi CMS
Ashokkumar T A
 
AngularJS Anatomy & Directives
Digikrit
 
From GitHub Source to GitHub Release: Free CICD Pipelines For JavaFX Apps
Bruno Borges
 
Visual Studio Code for Java and Spring Developers
Bruno Borges
 
Resilient and Adaptable Systems with Cloud Native APIs
VMware Tanzu
 
FAST for SharePoint Deep Dive
neil_richards
 
Deep Dive into Salesforce APIs
NeerajKumar1965
 
Warsaw MuleSoft Meetup #6 - CI/CD
Patryk Bandurski
 
EVOLVE'14 | Enhance | Anshul Chhabra & Akhil Aggrawal | Cisco - AEM High Avai...
Evolve The Adobe Digital Marketing Community
 
Serverless Architecture Patterns - Manoj Ganapathi - Serverless Summit
CodeOps Technologies LLP
 
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
Jitendra Bafna
 
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
Jitendra Bafna
 
Meetup_Bangalore_Rajesh
D.Rajesh Kumar
 
Taking Spring Apps for a Spin on Microsoft Azure Cloud
Bruno Borges
 
Mule soft meetup_-_finland_july_11th__2020
D.Rajesh Kumar
 

Similar to Introduction To Groovy And Grails - SpringPeople (20)

PPTX
Magic with groovy & grails
George Platon
 
PDF
Curious Coders Java Web Frameworks Comparison
Hamed Hatami
 
POT
intoduction to Grails Framework
Harshdeep Kaur
 
PPTX
One-stop solution for Grails web app development
OnGraph Technologies Pvt. Ltd.
 
PPT
Introduction to Grails
NexThoughts Technologies
 
PPT
Inrotograils 140211155206-phpapp01
Hiten Pratap Singh
 
PPTX
Node.js Deeper Dive
Justin Reock
 
PPTX
Lightweight Java in the Cloud
Bruno Borges
 
PPT
Moving the Guidewire platform to OSGi - Paul D'Albora
mfrancis
 
PDF
Webinar, Transforme sus ideas en Software as a Service en minutos
Software Guru
 
PPT
Introduction to Grails
Hiten Pratap Singh
 
PDF
GraphQL for Native Apps
Emanuele Di Saverio
 
PDF
Keeping your build tool updated in a multi repository world
Roberto Pérez Alcolea
 
PDF
Introduction+to+AngularJS+with+logo+from+digital+ocean.pdf
ahmadfaisal744721
 
PPTX
Introduction to Grails 2013
Gavin Hogan
 
PDF
Grails At Linked
LinkedIn
 
PDF
Grails at Linkedin
Guillaume Laforge
 
PDF
Java Development Company | Xicom
RyanForeman5
 
PDF
DevQA: make your testers happier with Groovy, Spock and Geb
Alvaro Sanchez-Mariscal
 
PDF
Serverless Java - Challenges and Triumphs
David Delabassee
 
Magic with groovy & grails
George Platon
 
Curious Coders Java Web Frameworks Comparison
Hamed Hatami
 
intoduction to Grails Framework
Harshdeep Kaur
 
One-stop solution for Grails web app development
OnGraph Technologies Pvt. Ltd.
 
Introduction to Grails
NexThoughts Technologies
 
Inrotograils 140211155206-phpapp01
Hiten Pratap Singh
 
Node.js Deeper Dive
Justin Reock
 
Lightweight Java in the Cloud
Bruno Borges
 
Moving the Guidewire platform to OSGi - Paul D'Albora
mfrancis
 
Webinar, Transforme sus ideas en Software as a Service en minutos
Software Guru
 
Introduction to Grails
Hiten Pratap Singh
 
GraphQL for Native Apps
Emanuele Di Saverio
 
Keeping your build tool updated in a multi repository world
Roberto Pérez Alcolea
 
Introduction+to+AngularJS+with+logo+from+digital+ocean.pdf
ahmadfaisal744721
 
Introduction to Grails 2013
Gavin Hogan
 
Grails At Linked
LinkedIn
 
Grails at Linkedin
Guillaume Laforge
 
Java Development Company | Xicom
RyanForeman5
 
DevQA: make your testers happier with Groovy, Spock and Geb
Alvaro Sanchez-Mariscal
 
Serverless Java - Challenges and Triumphs
David Delabassee
 
Ad

More from SpringPeople (20)

PPTX
Growth hacking tips and tricks that you can try
SpringPeople
 
PPTX
Top Big data Analytics tools: Emerging trends and Best practices
SpringPeople
 
PPTX
Introduction to Big Data
SpringPeople
 
PPTX
Introduction to Microsoft Azure IaaS
SpringPeople
 
PPTX
Introduction to Selenium WebDriver
SpringPeople
 
PPT
Introduction to Open stack - An Overview
SpringPeople
 
PPTX
Best Practices for Administering Hadoop with Hortonworks Data Platform (HDP) ...
SpringPeople
 
PPT
Why 2 million Developers depend on MuleSoft
SpringPeople
 
PPTX
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
SpringPeople
 
PPTX
Mastering Test Automation: How To Use Selenium Successfully
SpringPeople
 
PPTX
An Introduction of Big data; Big data for beginners; Overview of Big Data; Bi...
SpringPeople
 
PDF
SpringPeople - Introduction to Cloud Computing
SpringPeople
 
PDF
SpringPeople - Devops skills - Do you have what it takes?
SpringPeople
 
PPTX
Elastic - ELK, Logstash & Kibana
SpringPeople
 
PPTX
Hadoop data access layer v4.0
SpringPeople
 
PDF
Introduction To Core Java - SpringPeople
SpringPeople
 
PDF
Introduction To Hadoop Administration - SpringPeople
SpringPeople
 
PDF
Introduction To Spring Enterprise Integration - SpringPeople
SpringPeople
 
PDF
Introduction to Selenium Webdriver - SpringPeople
SpringPeople
 
PDF
Introduction To Big Data Analytics On Hadoop - SpringPeople
SpringPeople
 
Growth hacking tips and tricks that you can try
SpringPeople
 
Top Big data Analytics tools: Emerging trends and Best practices
SpringPeople
 
Introduction to Big Data
SpringPeople
 
Introduction to Microsoft Azure IaaS
SpringPeople
 
Introduction to Selenium WebDriver
SpringPeople
 
Introduction to Open stack - An Overview
SpringPeople
 
Best Practices for Administering Hadoop with Hortonworks Data Platform (HDP) ...
SpringPeople
 
Why 2 million Developers depend on MuleSoft
SpringPeople
 
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
SpringPeople
 
Mastering Test Automation: How To Use Selenium Successfully
SpringPeople
 
An Introduction of Big data; Big data for beginners; Overview of Big Data; Bi...
SpringPeople
 
SpringPeople - Introduction to Cloud Computing
SpringPeople
 
SpringPeople - Devops skills - Do you have what it takes?
SpringPeople
 
Elastic - ELK, Logstash & Kibana
SpringPeople
 
Hadoop data access layer v4.0
SpringPeople
 
Introduction To Core Java - SpringPeople
SpringPeople
 
Introduction To Hadoop Administration - SpringPeople
SpringPeople
 
Introduction To Spring Enterprise Integration - SpringPeople
SpringPeople
 
Introduction to Selenium Webdriver - SpringPeople
SpringPeople
 
Introduction To Big Data Analytics On Hadoop - SpringPeople
SpringPeople
 
Ad

Recently uploaded (20)

PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 

Introduction To Groovy And Grails - SpringPeople

  • 1. © SpringPeople Software Private Limited, All Rights Reserved.© SpringPeople Software Private Limited, All Rights Reserved. Introduction to
  • 2. © SpringPeople Software Private Limited, All Rights Reserved. What is Groovy? Groovy is a dynamic, object-oriented language for the Java Virtual Machine, which builds on the strengths of Java but has additional features inspired by languages such as Python, Ruby, and Smalltalk.
  • 3. © SpringPeople Software Private Limited, All Rights Reserved. What is Grails? Grails is an open source web application framework that leverages the Groovy language and complements Java web development. Grails is a standalone development environment that can hide all configuration details or allow integration of Java business logic. It provides easy-to-use tools to build web applications in Groovy.
  • 4. © SpringPeople Software Private Limited, All Rights Reserved. Grails Architecture
  • 5. © SpringPeople Software Private Limited, All Rights Reserved. Groovy Testing • Groovy is a scripting language that is executed as Java Byte Code. • This allows a Mix & Match between Groovy and Java Code. • Groovy comes with an AntBuilder that allows execution of Ant scripts from usual Groovy code. This capability allows executing WebTests, since WebTests are usual Ant tasks. • By executing WebTest from a Groovy script, you can fully leverage both the variety of WebTest steps and the sophisticated language means of Groovy for structuring your tests.
  • 6. © SpringPeople Software Private Limited, All Rights Reserved. Grails Controller • A controller fulfils the C in the Model View Controller (MVC) pattern and is responsible for handling web requests. In Grails a controller is a class with a name that ends in the convention "Controller" and lives in the grails- app/controllers directory. A controller can be created with the create-controller Command: grails create-controller org.bookstore.hello
  • 7. © SpringPeople Software Private Limited, All Rights Reserved. Manage Databases • Grails is really easy to get started with on green-field projects because the domain model defines the database schema, so you don't have to worry about that side of things. But what if you need to work against an existing database? In that case, you have to carefully map the domain classes yourself. If you have a large schema, that could take a while. • What about when new versions of your application go live? You can't limit the application to the original schema used for the first version, otherwise it wouldn't be able to evolve properly. You have to be able to migrate the schema and also any existing data. Both of these scenarios have corresponding plugins that can help solve the problems.
  • 8. © SpringPeople Software Private Limited, All Rights Reserved. • Remember to check in your migrations. • You can preview changelogs and changesets • Always check your migrations • Resetting locks • You can use Sql to assign default values to new columns Data migration tips & tricks
  • 9. © SpringPeople Software Private Limited, All Rights Reserved. Grails Service Layer • Grails defines the notion of a service layer. The Grails team discourages the embedding of core application logic inside controllers, as it does not promote reuse and a clean separation of concerns. Services in Grails are the place to put the majority of the logic in your application, leaving controllers responsible for handling request flow with redirects and so on. Command: grails create-service helloworld.simple
  • 10. © SpringPeople Software Private Limited, All Rights Reserved. How you can master Groovy and Grails? Become an expert in 4 days. World class Groovy And Grails training by the industry experts. More Details
  • 11. © SpringPeople Software Private Limited, All Rights Reserved. Suggested Audience & Other Details • Prerequisites: Experience with developing application using Java, Basic web technologies such as HTML and HTTP • Suggested Audience: – This training is designed for developers and architects interested in Groovy and Grails. • Duration – 4 Days Syllabus
  • 12. © SpringPeople Software Private Limited, All Rights Reserved. For further info/assistance contact [email protected] +91 80 656 79700 www.springpeople.com Our Partners