Dynamic scripting languages are a powerful addition to a software designer’s toolbox. Rails/Ruby and Python have not gained much acceptance in the enterprise. Grails and Groovy are an attempt to bridge the gap between the modern scripting world and the Enterprise Java world.
This talk is an introduction towards building web applications in Grails. First we will go about creating a REST based webservice. We will also show how to replace the default database backend of Grails with MySQL.
We will then build a web application that consumes this webservice. The emphasis will be on the design patterns and idioms in Grails that address the web application development lifecycle.
Groovy - Grails as a modern scripting language for Web applications
1. Groovy & Grails
Scripting for Modern Web Applications
Rohit Nayak
Talentica Software
2. Agenda
Demo: Quick intro to Grails
Scripting, Web Applications and Grails/Groovy
REST service in Grails
− Demo
− Internals
Web Client in Grails
− Demo
− Internals
Perspective
5. Web Frameworks with Scripting
Ruby on Rails (2004)
CakePHP (2005)
Django / Python (2005)
Groovy on Grails (2006)
6. Power of these frameworks
Baked Experience
The Language
Agility / Productivity
7. Baked Experience
Model View Controller
Object-Relational Mapping
Templates
Layout
URL rewriting
Ajax support
XML / JSON support
8. The Language
Dynamic
More expressive code
Smaller code
Native support for Lists, Hashmaps
Lang. support for IO, Net, XML
Idioms for common Design Patterns
9. Agile
Scaffolding
Unit tests
No compile cycles
Built-in webservers
Fail faster!