Skip to content
Snippets Groups Projects
user avatar
Konstantin Tsabolov authored
f012f291
History

OCM Proof Manager

Description


The Proof Manager, is the microservice responsible for handling the features related to Proof Presentation in the Organizational Credential Manager.

Usage


Swagger Documentation:

Swagger/OpenAPI

Installation


Pre-requisite

  • pnpm
  • docker
  • docker-compose
  • Postgres

OCM Services Dependencies

  • SSI Abstraction
  • Connection Manager
  • Attestation Manager

Running the app

Each service in the Organizational Credential Manager can be run from the infrastructure repository with Docker.

The .env files are in the infrastructure repository under /env

There are two separate Dockefiles in "./deployment" of every project:

    ## production in:
      ./deployment/ci
    ## development in:
      ./deployment/dev
  • (optional) Edit docker-compose.yml in "infrastructure" to use either /ci/ or /dev/ Dockerfiles.

  • Run while in "infrastructure" project:

$ docker-compose up --build proof-m

to run only Connection Manager or

$ docker-compose up --build

to run all the services.

Build

pnpm build

Run

pnpm start

Environment Variables Required

1. PORT
2. DATABASE_URL
3. ECSURL
4. NATS_URL
5. AGENT_URL

Outgoing communication services

1. SSI Abstraction

Incomming communication services

1. Connection Manager
2. Attestation Manager

Features supported

1. Proof Presentation 
2. Out of Band

Test


# unit tests
$ pnpm test

# e2e tests
$ pnpm test:e2e

# test coverage
$ pnpm test:cov

GDPR


GDPR

Dependencies


Dependencies

License


Apache 2.0 license