This project is a simple, MVC-based task management web application written in Java and JavaScript. It’s main purpose is to demonstrate implementation approaches for typical project automation requirements with the help of Gradle. The code of this project is featured in the book "Gradle in Action" published by Manning.
-
Usage of the Gradle Wrapper.
-
Support for a multi-project build.
-
Deployment to an embedded Jetty container.
-
Implements various testing strategies:
-
Unit testing with Spock.
-
Integration testing against an embedded H2 database.
-
Functional testing with Geb against Firefox.
-
-
Generates code coverage metrics with JaCoCo.
-
Integrates with Sonar for performing code quality analysis.
You can directly run your application your local machine. There’s no need to install a Servlet container. In a terminal window execute the following command from the root level of the project:
Mac OS X/*nix
./gradlew :web:jettyRun
Windows
gradlew.bat :web:jettyRun
After a few moments, you will find the following output: > Building > :web:jettyRun > Running at http://localhost:8080/todo
. Open your browser of choice and navigate to the URL.