Bootstrapper tool for Mojaloop OSS Lab
npm install ml-bootstrap
A handy ts based cli tool for seeding and setting up a Mojaloop Hub based on a config file. No need for Postman scripts, or hacky environment files that you copy and paste around.
Look at ./example/default.json5 for an example config file.
``bash`
npx ml-bootstrap
1. Clone this repo:
`bash`
git clone git@github.com:vessels-tech/ml-bootstrap.git
cd ml-bootstrap
npm install
1. Create a new config file, take a look at the ./example/ dir for some examples.
The most important parameters are:
- urls.fspiop - the location of the FSPIOP API (/parties, /participants, /quotes)urls.alsAdmin
- - The location of the ALS Admin API - used to register partiesurls.centralLedgerAdmin
- - The location of the central-ledger api - used to register DFSP callback endpointsapplicationUrls.oracle
- - This is used to sell the ALS which oracles to talk to
1. Run the tool!
`bash`
npm run ml-bootstrap -- -c /path/to/your/config
For example:
`
$ npm run ml-bootstrap -- -c ./example/default.json5
> @mojaloop/oss-lab-bootstrap@0.1.0 ml-bootstrap /home/lew/developer/mojaloop/ml-bootstrap
> ts-node ./src/cli.ts "-c" "./example/default.json5"
Running: Hub Steps
Description: Sets up the hub accounts
|
- step: setup HUB_MULTILATERAL_SETTLEMENT accountHUB_RECONCILIATION
executeRequest failed with status: 400
{
errorInformation: {
errorCode: '3003',
errorDescription: 'Add Party information error - Hub account has already been registered.'
}
}
- step: setup accountSETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL
executeRequest failed with status: 400
{
errorInformation: {
errorCode: '3003',
errorDescription: 'Add Party information error - Hub account has already been registered.'
}
}
- step: setup NET_DEBIT_CAP_ADJUSTMENT_EMAIL
- step: setup NET_DEBIT_CAP_THRESHOLD_BREACH_EMAIL
- step: setup HUB_MULTILATERAL_SETTLEMENT
|
Hub Steps Passed
Passed with warnings:
- setup account: Error, Status: 400 Message: {"errorInformation":{"errorCode":"3003","errorDescription":"Add Party information error - Hub account has already been registered."}}HUB_RECONCILIATION
- setup account: Error, Status: 400 Message: {"errorInformation":{"errorCode":"3003","errorDescription":"Add Party information error - Hub account has already been registered."}}
`
Some other options include:
`bash