Skip to content

ssian2/em-native-pdf-annotator-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evidence Management Native PDF Annotator App

License: MIT Build Status codecov

Native PDF Annotator is a backend service that manages native annotations on PDF documents. In addition the Native PDF Annotator handles requests from the Media Viewer to markup sensitive content in a case document and subsequent requests to redact marked up content..

Tech

It uses:

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

Plugins

Quickstart

#Cloning repo and running dependencies through docker

git clone [email protected]:hmcts/em-native-pdf-annotator-app.git
cd em-native-pdf-annotator-app/

az login
az acr login --name hmctspublic
docker-compose -f docker-compose-dependencies-simulator.yml pull
docker-compose -f docker-compose-dependencies-simulator.yml up

wait for 2-3 minutes till all the dependencies in the docker are up and running.

./gradlew clean
./gradlew build

./gradlew migratePostgresDatabase
./gradlew bootRun

Swagger UI

To view our REST API go to {HOST}:{PORT}/swagger-ui.html

http://localhost:8080/swagger-ui.html

API Endpoints

A list of our endpoints can be found here

https://hmcts.github.io/reform-api-docs/swagger.html?url=https://hmcts.github.io/reform-api-docs/specs/rpa-native-pdf-annotator-app.json

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

To run the project unit tests execute the following command:

./gradlew test

To run the project functional tests, first ensure all project dependency Docker containers have started and you have run ./gradlew bootRun as in the above setup instructions, then run

./gradlew functional 

License

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

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

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 91.5%
  • Groovy 3.2%
  • HCL 3.1%
  • Shell 1.9%
  • Other 0.3%