Monday, November 12, 2012

Lesion 1: Introduction about Groovy on Grails

What is Grails ?
The same Ruby on Rails. Grails is web server to run application by groovy. You do not choose web server to run application Grails. Default will choose Jetty Serverlet.
Grails auto use database HSQLDB this is database rude java.

What is Groovy?
Groovy is programming language was inherit from java. It don't replace Java that it is support java. It help some java developer short their coding.

Install Grails?
Download Grails from http://grails.org/Download.
- Extract file that you download
- Set Environment variable JAVA_HOME and GRAILS_HOME: Please go to /etc/environment add JAVA_HOME and GRAILS_HOME (is path go to folder content java and grails that you extract). Remember set PATH for JAVA_HOME and GRAILS_HOME go to bin folder. Continue run "source   /etc/environment" to update new environment variable.
(Please see introduction in link from Grails: http://grails.org/Installation)

Create new application
Create new folder and use command line
grails create-app {project-name}
Grails will auto generate structure project.

Run application
Please go to folder your project. run command line grails run-app after open browser with domain http://localhost:8080/{project-name}

No comments:

Post a Comment