To develop in framework, framework folder structure is very impotent because without understanding folder structure of a framework you cannot write code properly. After completing install, when you open the project folder and you will see the following folder structure.
· gradle
· build
· grails-app - top level directory for Groovy sources
grails-app
o conf - Configuration sources
conf
o controllers - Web controllers - The C in MVC.
controllers
o domain - The application domain.
domain
o i18n - Support for internationalization (i18n).
i18n
o services - The service layer.
services
o taglib - Tag libraries.
taglib
o utils - Grails specific utilities.
utils
o views - Groovy Server Pages or JSON Views - The V in MVC.
views
· scripts - Code generation scripts.
scripts
· src/main/groovy - Supporting sources
src/main/groovy
· src/test/groovy - Unit and integration tests.
src/test/groovy
In this directory, grails-app folder is development folder. For details please see http://docs.grails.org/latest/guide/gettingStarted.html#conventionOverConfiguration
At now we will change default page which is seen after browsing http://localhost:8090 URL. For this, we need to change default view file which location is views under main app folder grails-app. So we need to update page with bellow content
<!doctype html> <html> <head> <meta name="layout" content="main"/> <title>Welcome to Grails</title> <asset:link rel="icon" href="favicon.ico" type="image/x-ico" /> </head> <body> <h1>Hello Grails World</h1> </body> </html>
After changing, browse and you will see "Hello World" and browser title bar will show "Complete Application using grails 3.x"