Document verification microservice.
This repository is a part of normative control service alongside other microservices:
However, it can be used as CLI utility. For more info, see CLI.
There is two ways to do this:
- fork/clone this repository and add your implementation in implementation subproject;
- import normative-control-core subproject as library into your project (there is actually no uploaded versions on Maven Central or something so most likely it will be local jar).
In any case, you can use UrFU implementation as an example.
To build any subproject you need just one command:
gradle :$subproject_name:buildLauncher subproject has CLI. Detailed list of commands you can find below.
| Command | Description |
|---|---|
verify |
Verify document and exit. |
client |
Start client server. |
| Argument | Description |
|---|---|
<source> |
File that need to be verified. |
<result> |
Path to result file. If not specified, it will be saved in same folder as source file. |
<render> |
Path to rendered document in HTML file. File will be opened after verification. If not specified, file will not be rendered. |
-b |
Enable blocking mode (instead of multithreading). |
| Argument | Description |
|---|---|
-b |
Enable blocking mode (instead of multithreading). |
NOTE
Client mode requires a bunch of env variables:
nc_amqp_urlnc_amqp_queue_namenc_s3_access_key_idnc_s3_secret_key_idnc_s3_bucketnc_s3_endpointnc_s3_regionnc_db_urlnc_db_usernc_db_password
Developed by Andrei Stremousov & Maksim Diachenko under Apache 2.0 license.