Giter Site home page Giter Site logo

std's Introduction

A sample To Do web application Build Status

This project is a simple, MVC-based task management web application written in Java powered by Spring Boot. 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.

  • Implements various testing strategies:

    • Unit testing with Spock.

    • Integration testing Spring test utilities.

  • Static code analysis with publishing of result to SonarCloud.

  • Deployment of the WAR file to Heroku.

Build pipeline

The project includes a Jenkins pipeline definition file named Jenkinsfile. The pipeline consists of the following steps:

  1. Compile source code: Executes the Java compiler to turn production and test source code into byte code.

  2. Execute unit tests: Runs the unit test suite for fast feedback.

  3. Execute integration tests: Performs long-running integration tests.

  4. Perform static code analysis: Analyzes the source code and identifies quality hotspots. For convenience reasons, the project uses the cloud-based service of Sonarqube.

  5. Assemble the WAR file: Builds the final deliverable, a WAR file containing all resources needed in the runtime environment.

  6. Deploy the deliverable to production: Pushes the WAR file to the Paas, Heroku, upon request.

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 bootRun

Windows

gradlew.bat bootRun

Open your browser of choice and navigate to the URL http://localhost:8080/.

std's People

Contributors

fg78nc avatar

Watchers

 avatar  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.