Giter Club home page Giter Club logo

hmcts.bulk-scan-processor's Introduction

Bulk scan processor

Codacy Badge codecov Known Vulnerabilities

Purpose

Retrieve scanned documents along with information extracted with OCR engine. Store the images and let recipient services fetch the new data.

Building and deploying the application

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

Building the application

To build the project execute the following command:

  ./gradlew build

Running the application

Create the image of the application by executing the following command:

  ./gradlew assemble

Application listens on port 8581 which can be overridden by setting SERVER_PORT environment variable or from .env file.

The application depends upon certain components that are already up and running. Configuration details for each component can be changed by passing values in environment variables:

PostgreSQL

  • BULK_SCANNING_DB_HOST
  • BULK_SCANNING_DB_PORT
  • BULK_SCANNING_DB_NAME
  • BULK_SCANNING_DB_USER_NAME
  • BULK_SCANNING_DB_PASSWORD

Azure Blob Storage

  • STORAGE_ACCOUNT_NAME
  • STORAGE_KEY
  • SAS_TOKEN_VALIDITY

Document Management Storage

  • DOCUMENT_MANAGEMENT_URL working endpoint URL

Service to Service Authentication

  • S2S_URL working endpoint URL
  • S2S_NAME service name
  • S2S_SECRET service secret

Please find more details in infrastructure/main.tf file.

Running smoke tests

Smoke tests expect an address of deployed application to be passed in TEST_URL environment variable. For example:

  TEST_URL=http://localhost:8561 ./gradlew smoke

By default, it will use http://localhost:8581 which is defined in src/smokeTest/resources/application.yaml.

Running integration tests

  ./gradlew integration

Migration

To run migration gradle task expects FLYWAY_URL to be present. In case db requires username/password: FLYWAY_USER and FLYWAY_PASSWORD. Once those variables are exported all flyway tasks are available.

./gradlew flywayMigrate

License

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

hmcts.bulk-scan-processor's People

Contributors

adusumillipraveen avatar akomisarek avatar aliveni avatar apereverzin avatar banderous avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar doncem avatar gauravchawlamoj avatar jasonpaige avatar karoljastrzebski avatar lgonczar avatar luigibk avatar nitinprabhu avatar njrich28 avatar rishikrsharma avatar rkondratowicz avatar someshra avatar timja avatar timwebster9 avatar vakepati 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.