VRaptor comes with a demo web application, which shows some of the features VRaptor provides.
The application is called mydvds and uses HSQLDB as database, Hibernate as ORM, JSP as view and, of course, VRaptor2 as controller.
It is a simple application, but gives you good starting point. It uses Interceptors, Logics, @Parameter, @In, @Out and much more ...
You need a web container installed in order to run the app. Tomcat is one famous container, for example.
Of course, you need the sources of mydvds from VRaptor's homepage. Please refer to the download link .
And finally, Ant is required to create the mydvds.war (Web ARquive) file to deploy the app. Ant already comes with any famous IDE as default, but you could also install it separately.
After downloading and extracting the mydvds sources, you need to execute the build.xml using Ant. You will find the simple build file in the root folder of the app.
To assemble the war file execute ant from command line inside of mydvds the root folder. So you should do something like this:
$cd mydvds-<version>/ $<your path to ant>/ant
This invokes ant, executes automatically the build.xml and creates a .war file inside of the application root folder.
This file is needed to deploy the application to the web container.
Simple copy the mydvds-version.war file to the deploy directory of the web container. The container automatically extracts the content of the war file (if it supports hot-deploy) and makes the web application available.
If you use tomcat, copy the war file to the webapps folder of the tomcat default installation. That's all deploying to do!
mydvds should now be accessible through the url:
http://localhost:8080/mydvds-<version>
If you see the mydvds homepage with the login form, then you did it successfully! Create a new user and test the app. Check also the source code to see how simple it works ...
Problems? Check the installations steps or send an email to VRaptors email user list.