Grails

408 views
372 views

Published on

Published in: Technology, Education
1 Comment
0 Likes
Statistics
Notes
  • waiting for the Future work mentioned
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total views
408
On SlideShare
0
From Embeds
0
Number of Embeds
19
Actions
Shares
0
Downloads
6
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Grails

  1. 1. GrailsAditya Gaur
  2. 2. Grails• It is a web development framework• Has groovy as the underlying language• Built on Spring and Hibernate
  3. 3. Some Features
  4. 4. Scaffolding• Based on the fields in in your domain class grails generates views and controllers• It also handles UI for basic operations like: ▫ Creation ▫ Read ▫ Update ▫ Delete• For applying scaffold we just need to give the following in the controller class def scaffold = <Domain Class name>
  5. 5. Scaffolding (List View)
  6. 6. Scaffolding (Create View)
  7. 7. Scaffolding (update view)
  8. 8. Convention over Configuration• Grails Follows convention over configuration philosophy ▫ So we need to take care of the naming and the placement of various files in the project• So no need to write lot of XML files, thus faster web dev
  9. 9. GORM• Grails Object Relational Mapping• Helps in the process of getting Objects in and out from the database.• We don’t need to care about writing SQL queries for db operations• It uses hibernate under the hood
  10. 10. MVC architecture• Grails application has the most commonly used Model-View-Controller Architecture• It uses the spring MVC as underlying framework• When we create a grails application using create-app, it makes a directory structure in accordance with the MVC
  11. 11. Future Work• Would try to compare Grails with other Java based web development frameworks such as Play, Spring MVC, struts etc.

×