Marketplace for Content, Tests and Assessment
 
 

Archive

Posts Tagged ‘grails tutorial’

Grails tutorial – How to create and run First Application in Grails

July 23rd, 2009 sadhna No comments

I am hoping you would have gone through Introducing Grails and then the Part 1 of this post Setting Up Grails .

Now I am covering the details of developing and running the application

1. Go to command prompt and your grails home directory.
2. Create the application.

  • The create-app command creates the full project, with a template with placeholders for the different components of your application such as configuration, MVC, library, and much more.
  • > grails create-app   (it will ask for a application name say – first_app)
  • Will create basic  view layout as main.gsp page Read more…

Setting up Grails

July 8th, 2009 sadhna No comments

In case you have  missed it , here is the first post Introduction to Grails

Before creating the first grails application we need to first  install & set up grails environment –

  1. Go to http://www.grails.org/Download , Download and unzip grails.
  2. Create a GRAILS_HOME environment variable.
  3. Add $GRAILS_HOME/bin to the PATH.

Pre-requisite -  Jdk 1.4 or above.

Cool thing about Grails is you don’t need to install server or database for running test apps. web server is ‘jetty’ server comes with grails so you do not need to install separately. But if you want to use any other server like tomcat , jboss   ..,you can.

Grails also comes with HSQLDB, a pure-Java database. Using another database, such as mysql or Oracle Database is just changing the dbdriver in DataSource.groovy ,thanks to Hibernate and GORM.

Enjoy setting your machine for start Grailing.

Update:  In this post, how to create and run First Applications . I am covering the next steps for starting development

Get Adobe Flash playerPlugin by wpburn.com wordpress themes