Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

hmcts/div-validation-service

Repository files navigation

Divorce Validation Service License: MIT

Build Status Codacy Badge

This application validates the case data based on the validation rules supplied.

Setup

Prerequisites

Building

The project uses Gradle as a build tool but you don't have to install it locally since there is a ./gradlew wrapper script.

To build project please execute the following command:

    ./gradlew build

Running

First you need to create distribution by executing following command:

    ./gradlew installDist

When the distribution has been created in build/install/div-validaton-serivce directory, you can run the application by executing following command:

    ./gradlew bootRun

As a result the following container(s) will get created and started:

  • long living container for API application exposing port 4008

(./gradlew bootRun will stop at 75% but this is expected and you should still be able to access it)

Testing

Mutation tests

To run all mutation tests execute the following command:

    ./gradlew pitest

Unit tests

To run all unit tests please execute following command:

    ./gradlew test

Coding style tests

To run all checks (including unit tests) please execute following command:

    ./gradlew check

Developing

API documentation

API documentation is provided with Swagger:

  • http://localhost:4008/swagger-ui.html - UI to interact with the API resources

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Standard API

We follow RESTful API standards.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

No description or website provided.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages