Coder Social home page Coder Social logo

nfdiv-case-api's Introduction

No Fault Divorce Case API

License: MIT Quality Gate Status Reliability Rating Vulnerabilities Coverage

This Spring Boot API handles callbacks from CCD for the NFD case type......

Overview

nfdiv-frontendnfdiv-case-apinfdiv-shared-infrastructurenfdiv-performancenfdiv-solicitor-e2e-tests


Citizen view
Caseworker view

Building and deploying the application

Building the application

The project uses Gradle as a build tool. It already contains ./gradlew wrapper script, so there's no need to install gradle.

To build the project execute the following command:

./gradlew build

Running the application locally

You will need access to the nfdiv-aat vault and an active VPN to run locally as it depends on services in AAT.

Run the application by executing the following command:

./gradlew bootRun

This will start the API container exposing the application's port (set to 4013 in this template app).

In order to test if the application is up, you can call its health endpoint:

curl http://localhost:4013/health

You should get a response similar to this:

{"status":"UP","diskSpace":{"status":"UP","total":249644974080,"free":137188298752,"threshold":10485760}}

Running the application locally with CCD and XUI

If you would like to run the full CCD and XUI stack locally you can use:

./gradlew bootWithCcd

Then you can access XUI on http://localhost:3000

Generate CCD JSON files

Generating the CCD JSON files will happen on every ./gradlew bootWithCcd but you can manually trigger this with:

./gradlew generateCCDConfig

Generate TypeScript definitions for CCD definition

./gradlew generateTypeScript

Crons

You can manually run a cron task from the cli:

TASK_NAME=[task] java -jar nfdiv-case-api.jar run

# E.g.
TASK_NAME=SystemProgressHeldCasesTask java -jar nfdiv-case-api.jar

# or
TASK_NAME=SystemProgressHeldCasesTask ./gradlew bootRun

Before running cron/task locally, these changes are required
Add task name as environment variable
#e.g.
Add TASK_NAME=SystemProgressHeldCasesTask in .aat-env file

By default, task will be run against ccd in aat. In order to run it 
against local ccd, in application.yaml file, change this CASE_DATA_STORE_BASEURL:http://localhost:4452
or add CASE_DATA_STORE_BASEURL=http://localhost:4452 in .aat-env file

If running against local case api, we need to add below to .aat-env for task
to run on a different port than on default port 4453 on which case api runs.

Without below step it will throw port in use exception.
Add SERVER_PORT=[random port] after nfdiv-case-api has started in local.

License

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

nfdiv-case-api's People

Contributors

adamg-hmcts avatar amoriartymoj avatar andrew-mcmahon7 avatar aramchurn21 avatar banderous avatar benouaer avatar bweeks-justicegovuk avatar damongreen123 avatar danielbe11 avatar delythjustice avatar dependabot-preview[bot] avatar dependabot[bot] avatar ed14537 avatar ellisd-b avatar faisalmoj avatar lara-mpt avatar linusnorton avatar mapingo avatar mark-butler-solirius avatar nigeldunne avatar nitinprabhu avatar pallavijustice avatar renovate[bot] avatar rmtsrc avatar sarahlittlejohn avatar someshra avatar sunilnatikar avatar tiagreaney avatar tomxelliott avatar velimd avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nfdiv-case-api's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • hmctspublic.azurecr.io/base/java 21-distroless
github-actions
.github/workflows/ccd-diff.yml
  • actions/setup-java v4
  • actions/checkout v4
  • actions/upload-artifact v4
  • actions/setup-java v4
  • actions/checkout v4
  • actions/upload-artifact v4
  • actions/setup-node v4
  • actions/download-artifact v4
  • actions/download-artifact v4
  • thollander/actions-comment-pull-request v2
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-java v4
gradle
settings.gradle
build.gradle
  • cz.habarta.typescript-generator:typescript-generator-gradle-plugin 3.2.1263
  • org.owasp.dependencycheck 10.0.3
  • org.sonarqube 5.1.0.4882
  • org.springframework.boot 3.2.3
  • com.github.ben-manes.versions 0.51.0
  • hmcts.ccd.sdk 5.5.10
  • com.github.hmcts.rse-cft-lib 0.19.1337
  • checkstyle 10.14.0
  • pmd 6.18.0
  • org.bouncycastle:bcpkix-jdk15on 1.70
  • org.apache.tomcat.embed:tomcat-embed-core 10.1.28
  • org.json:json 20240303
  • org.junit.jupiter:junit-jupiter-api 5.11.0
  • org.junit.jupiter:junit-jupiter-engine 5.11.0
  • org.junit.jupiter:junit-jupiter-params 5.11.0
  • org.junit.platform:junit-platform-commons 1.11.0
  • org.junit.platform:junit-platform-engine 1.11.0
  • net.logstash.logback:logstash-logback-encoder 8.0
  • org.apache.logging.log4j:log4j-api 2.23.1
  • org.apache.logging.log4j:log4j-to-slf4j 2.23.1
  • com.google.guava:guava 33.3.0-jre
  • com.fasterxml.jackson.core:jackson-databind 2.17.2
  • com.fasterxml.jackson.core:jackson-core 2.17.2
  • com.fasterxml.jackson.core:jackson-annotations 2.17.2
  • com.launchdarkly:launchdarkly-java-server-sdk 7.5.0
  • com.github.hmcts:befta-fw 8.10.1
  • com.github.hmcts:ccd-client 5.0.3
  • com.github.hmcts:idam-java-client 3.0.3
  • com.github.hmcts:java-logging 6.1.6
  • com.github.hmcts:send-letter-client 4.0.4
  • com.github.hmcts:service-auth-provider-java-client 5.2.0
  • com.github.hmcts:ccd-case-document-am-client 1.7.3
  • org.springdoc:springdoc-openapi-starter-webmvc-ui 2.6.0
  • org.springframework.cloud:spring-cloud-starter-bootstrap 4.1.4
  • org.elasticsearch:elasticsearch 7.17.23
  • uk.gov.service.notify:notifications-java-client 5.2.0-RELEASE
  • org.apache.commons:commons-collections4 4.4
  • commons-validator:commons-validator 1.9.0
  • com.github.ben-manes.caffeine:caffeine 3.1.8
  • org.projectlombok:lombok 1.18.34
  • com.jayway.awaitility:awaitility 1.7.0
  • com.github.stefanbirkner:system-lambda 1.2.1
  • org.assertj:assertj-core 3.26.3
  • org.assertj:assertj-guava 3.26.3
  • org.springframework.cloud:spring-cloud-starter-contract-stub-runner 4.1.4
  • org.springframework.cloud:spring-cloud-starter-openfeign 4.1.3
  • org.mockito:mockito-inline 5.2.0
  • org.apache.pdfbox:pdfbox 3.0.3
  • org.simplify4u:slf4j2-mock 2.3.0
  • com.github.hmcts:service-auth-provider-java-client 5.2.0
  • com.microsoft.playwright:playwright 1.46.0
  • org.junit-pioneer:junit-pioneer 2.2.0
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.10
helm-values
charts/nfdiv-case-api/values.yaml
helmv3
charts/nfdiv-case-api/Chart.yaml
  • java 5.2.1
  • idam-pr 2.3.0
  • nfdiv-frontend ~0.0.68
  • ccd-def-cleanup ~9.0.3
npm
package.json
  • node >=12.0.0
nvm
.nvmrc
  • node 20.17.0
regex
Dockerfile
  • microsoft/ApplicationInsights-Java 3.5.4
terraform
infrastructure/main.tf
infrastructure/state.tf
  • azurerm ~> 4.0
terraform-version
infrastructure/.terraform-version
  • hashicorp/terraform 1.9.5

  • Check this box to trigger a request for Renovate to run again on this repository

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.