Giter Club home page Giter Club logo

em-annotation-api's Introduction

Evidence Management Annotation App

License: MIT Build Status codecov Codacy Badge Codacy Badge Known Vulnerabilities

Annotation API is a backend service to store and retrieve annotations.

Quickstart.

To clone repo and prepare to pull containers:

git clone https://github.com/hmcts/em-annotation-app.git
cd em-annotation-app/
brew install jq

Clean and build the application:

Requires docker desktop running

./gradlew clean
./gradlew build

To run the application:

At the moment java version must be set to 17 as 21 is not supported for local setup by CFTLib

./gradlew bootWithCCD

To remove docker containers after stopping the run:

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -f status=exited -q)

Potential issues and solutions

Port 5000 is already in use on Monterey macs:

Disable AirPlay receiver

Authentication issues causing containers to not start:

docker logout hmctspublic.azurecr.io

Swagger UI

To view our REST API go to http://{HOST}/swagger-ui/index.html On local machine with server up and running, link to swagger is as below

http://localhost:8080/swagger-ui/index.html if running on AAT, replace localhost with ingressHost data inside values.yaml class in the necessary component, making sure port number is also removed.

API Endpoints

A list of our endpoints can be found here

https://hmcts.github.io/reform-api-docs/specs/rpa-em-annotation-app.json

Running contract or pact tests:

You can run contract or pact tests as follows:

./gradlew clean
./gradlew contract

You can then publish your pact tests locally by first running the pact docker-compose:

docker-compose -f docker-pactbroker-compose.yml up

and then using it to publish your tests:

./gradlew pactPublish

Tech

It uses:

  • Java11
  • Spring boot
  • Junit, Mockito and SpringBootTest and Powermockito
  • Gradle
  • lombok project - Lombok project

Plugins

License

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

em-annotation-api's People

Contributors

adusumillipraveen avatar benouaer avatar damongreen123 avatar dependabot-preview[bot] avatar dependabot[bot] avatar ferdi-cocelli avatar hmcts-jenkins-d-to-i[bot] avatar isha2040 avatar jefex7 avatar jeroenrijks avatar kasi-subramaniam avatar lara-mpt avatar larslnde avatar linusnorton avatar matt-k1998 avatar mdayican avatar michaeljacob21012 avatar mokainos avatar pawelkaczmarekuk avatar pdenness avatar phaniperla avatar raihan-r avatar rajkatla-hmcts avatar renovate-bot avatar renovate[bot] avatar rishikrsharma avatar shehreem-solirius avatar tomxelliott avatar velimd avatar yogesh-hullatti avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

em-annotation-api's Issues

Dependency Dashboard

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

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update Terraform azurerm to ~> 4.3.0

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

dockerfile
Dockerfile
  • hmctspublic.azurecr.io/base/java 21-distroless
gradle
gradle.properties
settings.gradle
build.gradle
  • org.flywaydb:flyway-database-postgresql 10.18.0
  • io.spring.dependency-management 1.1.6
  • org.springframework.boot 3.3.3
  • uk.gov.hmcts.java 0.12.63
  • org.owasp.dependencycheck 9.2.0
  • com.github.ben-manes.versions 0.51.0
  • org.sonarqube 5.1.0.4882
  • au.com.dius.pact 4.2.14
  • info.solidsoft.pitest 1.15.0
  • net.serenity-bdd.serenity-gradle-plugin 3.0.0
  • com.github.hmcts.rse-cft-lib 0.19.1362
  • org.flywaydb.flyway 10.18.0
  • org.springframework.cloud:spring-cloud-starter-bootstrap 4.1.4
  • org.springframework.cloud:spring-cloud-openfeign 4.1.3
  • com.fasterxml.jackson.datatype:jackson-datatype-json-org 2.17.2
  • com.fasterxml.jackson.datatype:jackson-datatype-hppc 2.17.2
  • com.fasterxml.jackson.datatype:jackson-datatype-jsr310 2.17.2
  • com.fasterxml.jackson.datatype:jackson-datatype-hibernate5-jakarta 2.17.2
  • com.fasterxml.jackson.core:jackson-annotations 2.17.2
  • com.fasterxml.jackson.core:jackson-databind 2.17.2
  • com.fasterxml.jackson.core:jackson-core 2.17.2
  • com.fasterxml.jackson.module:jackson-module-blackbird 2.17.2
  • org.zalando:problem-spring-web 0.29.1
  • org.zalando:jackson-datatype-problem 0.27.1
  • org.springdoc:springdoc-openapi-starter-webmvc-ui 2.6.0
  • com.google.guava:guava 33.3.0-jre
  • org.apache.httpcomponents:httpclient 4.5.14
  • org.flywaydb:flyway-core 10.18.0
  • org.flywaydb:flyway-database-postgresql 10.18.0
  • org.postgresql:postgresql 42.7.4
  • org.apache.commons:commons-lang3 3.17.0
  • commons-beanutils:commons-beanutils 1.9.4
  • commons-validator:commons-validator 1.9.0
  • org.ehcache:ehcache 3.10.8
  • org.hibernate:hibernate-core 6.6.1.Final
  • org.hibernate:hibernate-jcache 6.6.1.Final
  • org.hibernate:hibernate-envers 6.6.1.Final
  • com.github.hmcts.java-logging:logging 6.1.6
  • org.mapstruct:mapstruct 1.6.2
  • org.springframework.security:spring-security-oauth2-resource-server 6.3.3
  • org.springframework.security:spring-security-oauth2-client 6.3.3
  • org.springframework.security:spring-security-web 6.3.3
  • org.springframework.security:spring-security-oauth2-jose 6.3.3
  • org.springframework.security:spring-security-core 6.3.3
  • org.springframework.security:spring-security-config 6.3.3
  • com.github.hmcts:core-case-data-store-client 5.0.3
  • com.github.hmcts:service-auth-provider-java-client 5.2.0
  • com.github.hmcts:idam-java-client 3.0.3
  • com.jayway.jsonpath:json-path 2.9.0
  • org.springframework.cloud:spring-cloud-starter-openfeign 4.1.3
  • org.projectlombok:lombok 1.18.34
  • org.projectlombok:lombok 1.18.34
  • org.mapstruct:mapstruct-processor 1.6.2
  • org.hibernate:hibernate-jpamodelgen 6.6.1.Final
  • org.hamcrest:hamcrest-all 1.3
  • com.warrenstrange:googleauth 1.5.0
  • org.junit.vintage:junit-vintage-engine 5.11.0
  • jakarta.xml.bind:jakarta.xml.bind-api 4.0.2
  • org.glassfish.jaxb:jaxb-runtime 4.0.5
  • org.junit.jupiter:junit-jupiter-api 5.11.0
  • com.github.hmcts:fortify-client 1.4.4
  • org.testcontainers:postgresql 1.20.1
  • org.mockito:mockito-inline 5.2.0
  • au.com.dius:pact-jvm-consumer-junit 4.0.10
  • au.com.dius:pact-jvm-consumer-junit5 4.0.10
  • au.com.dius:pact-jvm-consumer-java8 4.0.10
  • au.com.dius:pact-jvm-consumer 4.0.10
  • org.junit.jupiter:junit-jupiter-engine 5.11.0
  • org.json:json 20240303
  • com.github.hmcts:em-test-helper 2.0.8
  • xerces:xercesImpl 2.12.2
  • org.apache.httpcomponents:fluent-hc 4.5.14
  • ch.qos.logback:logback-classic 1.5.8
  • ch.qos.logback:logback-core 1.5.8
  • checkstyle 10.18.1
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.10.1
helm-requirements
charts/em-anno/Chart.yaml
  • java 5.2.1
  • xui-webapp ~1.0.16
  • idam-pr ~2.3.0
helm-values
charts/em-anno/values.yaml
helmv3
charts/em-anno/Chart.yaml
  • java 5.2.1
  • xui-webapp ~1.0.16
  • idam-pr ~2.3.0
terraform
infrastructure/main.tf
infrastructure/state.tf
  • azuread 2.53.1
  • azurerm ~> 4.2.0
infrastructure/versions.tf
  • hashicorp/terraform >= 0.15
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

Use of mutation testing in em-annotation-api - Help needed

Hello there!

My name is Ana. I noted that you use the mutation testing tool Pit in the project.
I am a postdoctoral researcher at the University of Seville (Spain), and my colleagues and I are studying how mutation testing tools are used in practice. With this aim in mind, we have analysed over 3,500 public GitHub repositories using mutation testing tools, including yours! This work has recently been published in a journal paper available at https://link.springer.com/content/pdf/10.1007/s10664-022-10177-8.pdf.

To complete this study, we are asking for your help to understand better how mutation testing is used in practice, please! We would be extremely grateful if you could contribute to this study by answering a brief survey of 21 simple questions (no more than 6 minutes). This is the link to the questionnaire https://forms.gle/FvXNrimWAsJYC1zB9.

We apologize if you have already received message multiple times or if you have already had the opportunity to complete the survey. If you have already shared your feedback, we want to convey our appreciation, kindly disregard this message, and please accept our apologies for any inconvenience.

Drop me an e-mail if you have any questions or comments ([email protected]). Thank you very much in advance!!

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.