Command Line
Last updated
Was this helpful?
Last updated
Was this helpful?
Working example project, which results from this tutorial, can be downloaded from .
Using to create a new application is probably the most reliable way. We can basically say that if you are not able to create project using the command line, you will be not able to work with Grails at all and you need to re-install Grails or fix its configuration.
These instructions are supposed to be executed by using the command line.
Open your console and run grails create-app my-app
that will create new directory called my-app with sample Grails application.
Go to that directory cd my-app
and open that folder in a text editor of your choice.
Open BuildConfig.groovy
and add latest version of plugin into compile scope compile ":vaadin:7.6.1"
.
Now we need to run grails vaadin-quickstart
, so Vaadin plugin can generate sample application for us.
We want to prevent Grails to take over URL mapping. Open UrlMappings.groovy
and make sure the URL mapping is empty.
We are ready to start up the application. Run grails run-app command. Vaadin application running on will become accessible after a while.