Hi! I wanted to show how easily you can create a Vaadin application and run it, so I did a screen capture of me doing it, which takes less than one minute. Without further ado, here’s the video.
All you need preinstalled in Java and Maven to be able follow it. It uses the maven command line archetype tool to create the project, and it is run through maven with the support of Jetty.
Steps:
’
$ mvn archetype:generate ’ to start process of creating a new project
’
vaadin ’ to search for Vaadin related archetypes
Select ’
vaadin-archetype-application ’ from the list by typing in the corresponding number. The number might change as they are ordered alphabetically, but as long as I can remember, the number has been ‘5’.
You are presented with a list of Vaadin versions, just press enter to select the latest one.
Type in a preferred package and project name. For other fields I just press enter to get the defaults.
confirm that everything is okay by typing ’
y '.
’
$ cd hello-vaadin ’ to go into project folder
’
$ mvn jetty:run ’ to start an embedded Jetty instance.
I have two additional videos lined up, which will show you how to import these to and IDE, modify them and run them within the IDE, Eclipse and IntelliJ IDEA respectively.
Part 2 is now live. Take the Vaadin project you created in part 1, or any other maven based project, and bring it over to Eclipse. Import it, change some code and start Jetty, all from within Eclipse.
Part 3 is the same as Part 2, but instead of Eclipse, we use IntelliJ IDEA. Take the Vaadin project you created in part 1, or any other maven based project, and bring it over to IntelliJ IDEA. Import it, change some code and start Jetty from within IDEA.