Skip to content
forked from bmuschko/todo

A sample To Do web application built with Gradle

Notifications You must be signed in to change notification settings

mayzhang2000/todo

 
 

Repository files navigation

A sample To Do web application

This project is a simple, MVC-based task management web application written in Java and JavaScript. Its 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.

Applied Gradle features

  • 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 local or remote web container in Firefox.

    • Smoke testing of a deployed application with HTTPBuilder.

  • Generates code coverage metrics with JaCoCo.

  • Integrates with Sonar for performing code quality analysis.

  • Publishing to a Maven repository using the Maven Publishing plugin.

  • Implements dynamic project versioning strategy.

  • Reading environment-specific configuration at build time using Groovy’s ConfigSlurper.

  • Retrieving the deliverable artifact from a Maven repository.

  • Deployment of the deliverable artifact to a Tomcat container using SCP/SSH.

Running the application

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.

About

A sample To Do web application built with Gradle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 65.7%
  • CSS 22.3%
  • Groovy 11.6%
  • TSQL 0.4%