Skip to content

**EXPERIMENTAL** vNext Settlements Bounded Context

License

Notifications You must be signed in to change notification settings

kyaw-soe-tw/settlements-bc

 
 

Repository files navigation

Settlements Bounded Context

Git Commit Git Releases Docker pulls CircleCI

Packages

The Settlements BC consists of the following packages;

public-types-lib

Public shared types. README

domain-lib

Domain library types. README

infrastructure-lib

Infrastructure library. README

settlements-bc-http-svc

HTTP service for Settlements BC. README

settlement-model-lib

Settlement library used to determine the settlement model for a settlement transfer. README

shared-mocks-lib

Mock implementation used for testing. README

Run

npm run start:http-svc

Usage

Install Node version

More information on how to install NVM: https://github.com/nvm-sh/nvm

nvm install
nvm use

Install Dependencies

npm install

Build

npm run build

Unit Tests

npm run test:unit

Run the services

Startup supporting services

Use https://github.com/mojaloop/platform-shared-tools/tree/main/packages/deployment/docker-compose-infra

Follow instructions in the docker-compose-infra README.md to run the supporting services.

Run Integration Tests

npm run test:integration

After running the docker-compose-infra we can start settlements-bc-http-svc:

npm run start:http-svc

Make sure you have the following services up and running (available in platform-shared-tools docker-compose files):

  • infra

    • mongo
    • kafka
    • zoo
  • cross-cutting

    • authentication-svc
    • authorization-svc
    • identity-svc
    • platform-configuration-svc
  • apps

    • account-and-balances (both services)
    • participants-svc

Collect coverage (from both unit and integration test types)

After running the unit and/or integration tests:

npm run posttest

You can then consult the html report in:

coverage/lcov-report/index.html

Run all tests at once

Requires integration tests pre-requisites

npm run test

Troubleshoot

Unable to load dlfcn_load

error:25066067:DSO support routines:dlfcn_load:could not load the shared library

Fix: https://github.com/mojaloop/security-bc.git export OPENSSL_CONF=/dev/null

Documentation

The following documentation provides insight into the Settlements Bounded Context.

About

**EXPERIMENTAL** vNext Settlements Bounded Context

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.7%
  • JavaScript 4.0%
  • Shell 3.0%
  • Dockerfile 1.3%