Document Validation Quick Start for Java

Welcome to the Document Validation Quick Start Guide! This guide will take you through installing, configuring and running Document Validation directly on the Java JVM.

System Requirements

Document Validation was built and tested using the Eclipse Temurin OpenJdk version 17. It is recommend to install this version, but other versions may work as well.

Configuration

Document Validation can be configured using environment variables on Linux:

export SERVER_PORT=8080
export DOCUMENTVALIDATION_REGULARURL=https://document.aware-demos.com  
export DOCUMENTVALIDATION_LOGREQUESTS=false
export DOCUMENTVALIDATION_LOGREQUESTSDIRECTORY="LOGS/REQUESTS"

or on Windows:

set SERVER_PORT=8080
set DOCUMENTVALIDATION_REGULARURL=https://document.aware-demos.com  
set DOCUMENTVALIDATION_LOGREQUESTS=false
set DOCUMENTVALIDATION_LOGREQUESTSDIRECTORY="logs/request"

Running the Application

The application is an executable jar, and the following command can be used to start it:

java -jar target\document-validation-{VERSION}.jar

Where {VERSION} is the version number of the release.

You can query the /version endpoint from the command line to ensure it is running correctly:

curl http://localhost:8080/documentValidation/version