Basics of Groovy on Grails framerwork in java

Groovy on Grails is open source application framework build on java language using groovy scripting languages.
what is groovy framework:-

Groovy is scripting programming language which runs on java virtual machine. Groovy is a java module that has one dependency jar file.
Groovy is scripting framework for building applications on top of java. It will reduce lot of java code to write the applications and the files are saved with extension as .groovy. The syntax for groovy and java looks similar.

Grails Framework:-


Grails is java web application development framework for building rapid web applications. Grails are integrated with spring and hibernate technologies to develop the applications very quickly. In Grails, to story any model object, we don't define any configuration or much files to do crud on model. just by coding by convention approach, we can simplify the development and do our logic quickly.

Grails applications can be build by java developers as well as developers who has development experience easily.

Advantages of Grails framework:-


support for building web applications quickly without focusing on software conventions
Integrate with persistent orm frameworks like hibernate and other frameworks like spring
Provide riche templates build on Groovy server pages to build standard UI elements and MVC features
Good documentation and lot of companies are using these technologies
Learning framework is easy and building web applications with this framework is straightforward.
Generate code automatically based on templates.
Building new applications is very easy


Disadvantages with Grails:-

It is developed on java, learning curve is there for non-java developers
Integrating with existing custom frameworks is very difficult and complex.
There is time consuming process while compiling grails apps as Interpretation of the scripts and conversion to .class files is to be done.

Grails is integrated with maven for building grails projects.

Grails project code architecture
controllers – grails-app/controllers :- here we can write the groovy files for controller related code
domain – grails-app/domain Contains the list of groovy model objects with package structure

view - grails-app/views

has the list of gsp files which are groovy based server pages to display the UI elements. Groovy server pages are like java server pages with support of groovy scripting languages.

This is just basic idea that i got to know and blogged.

Please share your views on this.

1 comment:

  1. Also add this too in disadvantage... "Lack of knowledge guidance and reference. Less people to resolve doubts and errors"

    ReplyDelete

Note: only a member of this blog may post a comment.