GithubHelp home page GithubHelp logo

todo's Introduction

A sample To Do web application Build Status

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.

Note: Due to a bug in Groovy 1.8.9’s ConfigSlurper, the application is not buildable with JDK 8 and the checked-in version of the Gradle wrapper. For more information please see the discussion on the Gradle forum. If you are using JDK8, you will want to build the code with a Gradle version >= 2.0. The branch gradle-2.x provides a runnable example using Gradle 2.11.

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.

todo's People

Contributors

bmuschko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.