Note: Before completing this guide, make sure you have completed the general onboarding guide in the base mojaloop repository.
- Prerequisites
- Service Overview
- Installing and Building
- Running Locally
- Running Inside Docker
- Testing
- Common Errors/FAQs
If you have followed the general onboarding guide, you should already have the following cli tools installed:
brew
(macOS), [todo: windows package manager]curl
,wget
docker
+docker-compose
node
,npm
and (optionally)nvm
The Logging BC consists of the following packages;
client-lib
Client library types.
README
logging-svc
Logging Service.
README
public-types-lib
Public shared types.
README
Firstly, clone your fork of the logging-bc
onto your local machine:
git clone https://github.com/<your_username>/logging-bc.git
Then cd
into the directory and install the node modules:
cd logging-bc
More information on how to install NVM: https://github.com/nvm-sh/nvm
nvm install
nvm use
npm install
npm run build
In this method, we will run all of the core dependencies inside of docker containers, while running the logging-bc
server on your local machine.
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.
This will do the following:
docker pull
down any dependencies defined in eachdocker-compose.yml
file, and the services.- run all of the containers together
- ensure that all dependencies have started for each services.
npm run start:logging-svc
We use npm
scripts as a common entrypoint for running the tests. Tests include unit, functional, and integration.
# unit tests:
npm run test:unit
# check test coverage
npm run test:coverage
# integration tests
npm run test:integration
Here you can find a complete Postman collection, in a json file, ready to be imported to Postman.
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