Grails - Creating our first Grails application

text zoom

1) Create a folder c:\sourcecode\
2) Inside this new folder, type grails create-app
This will ask for an application name to create a template application.

C:\sourcecode>grails create-app


Welcome to Grails 1.0.3 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: c:\grails

 


Base Directory: C:\sourcecode

Note: No plugin scripts found

Running script c:\grails\scripts\CreateApp.groovy

Environment set to development

Application name not specified. Please enter:

addressBook


 


+ grails-app


+ conf ---> location of configuration artifacts like data sources


+ hibernate ---> optional hibernate config


+ spring ---> optional spring config


+ controllers ---> location of controller artifacts


+ domain ---> location of domain classes


+ i18n ---> location of message bundles for i18n


+ services ---> location of services


+ taglib ---> location of tag libraries


+ util ---> location of special utility classes (e.g., codecs, etc.)


+ views ---> location of views


+ layouts ---> location of layouts


+ lib


+ scripts ---> scripts


+ src


+ groovy ---> optional; location for Groovy source files (of types other than those in grails-app/*)


+ java ---> optional; location for Java source files


+ test ---> generated test classes


+ web-app


+ WEB-INF


 


Gails create app addressbook


 


Grails Created folders

                    

Copyright © 2008 VisualBuilder. All rights reserved