Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Document verification microservice for UrFU Normative Control service

License

Notifications You must be signed in to change notification settings

MaeaSoftworks/normative-control-core

Repository files navigation

normative control core

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.

Creating your own verification implementation

There is two ways to do this:

  1. fork/clone this repository and add your implementation in implementation subproject;
  2. 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.

Building

To build any subproject you need just one command:

gradle :$subproject_name:build

CLI

Launcher subproject has CLI. Detailed list of commands you can find below.

Command Description
verify Verify document and exit.
client Start client server.

verify arguments

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).

client arguments

Argument Description
-b Enable blocking mode (instead of multithreading).

NOTE

Client mode requires a bunch of env variables:

  • nc_amqp_url
  • nc_amqp_queue_name
  • nc_s3_access_key_id
  • nc_s3_secret_key_id
  • nc_s3_bucket
  • nc_s3_endpoint
  • nc_s3_region
  • nc_db_url
  • nc_db_user
  • nc_db_password

Authors

Developed by Andrei Stremousov & Maksim Diachenko under Apache 2.0 license.

About

Document verification microservice for UrFU Normative Control service

Resources

License

Stars

Watchers

Forks

Packages