The Grails environment for this example is Grails 3.2.2, Groovy 2.4.7 and JVM 1.8.0_92.
To create a new grails app issue the following command at the command prompt.
[codesyntax lang=”dos”]
grails create-app db01
[/codesyntax]
After the command completes the following output can be observed.
To review what grails created change to the newly created application folder and issue the dir command. The following will be available.
To import the Grails application into Eclipse select the File -> Import option and the following dialog will appear.
Be sure to traverse to the Projects from Folder or Archive option and press the Next option.
To begin the import click the Finish button.
As you can see the newly created db01 file structure in now available in Eclipse.
To run the application issue the following command at the command prompt at depicted below.
[codesyntax lang=”dos”]
grails run-app
[/codesyntax]
The result of the command can be reviewed in the command prompt below.
To review the application in action issue the following command in any available browser.
[codesyntax lang=”dos”]
http://localhost:8080
[/codesyntax]
The result of the command is the running Grails application as listed below.
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.
BCS Grails, MySQL and Spring Security
December 20, 2016 at 12:58 pm[…] review how to accomplish this see the tutorial here. Next connect the Grails application with MySQL RDBMS by reviewing the tutorial […]