@mojaloop/als-static-oracle-svc
v0.0.30
Published
An Account Lookup Service Oracle based on static configuration
Readme
ALS Static Oracle
Setup
Clone repo
git clone [email protected]:mojaloop/als-static-oracle-svc.gitImprove local DNS resolver
Add the 127.0.0.1 als-static-oracle-svc.local entry in your /etc/hosts so the als-static-oracle-svc is reachable on http://als-static-oracle-svc.local:3000. Elsewhere use http://localhost:3000
Install service dependencies
cd als-static-oracle-svc
npm ciRun local dockerized als-static-oracle-svc
npm run docker:build
npm run docker:runTo check the als-static-oracle-svc health visit http://als-static-oracle-svc.local:3000/health
Run locally
docker-compose up -d mysql
npm run migrate
npm run startUpdating the OpenAPI (Swagger) Spec
We use multi-file-swagger to make our swagger files more manageable.
After making changes to the .yaml files in ./src/interface/, update the swagger.json file like so:
npm run build:openapiNote: We will likely want to move to swagger 3.0 at some point, and once we do, we will be able to use the common api snippets library to factor out common Mojaloop snippets. Keep track of #352 - Update to OpenAPI v3
Auditing Dependencies
We use audit-ci along with npm audit to check dependencies for node vulnerabilities, and keep track of resolved dependencies with an audit-ci.jsonc file.
To start a new resolution process, run:
npm run audit:fixYou can then check to see if the CI will pass based on the current dependencies with:
npm run audit:checkThe audit-ci.jsonc contains any audit-exceptions that cannot be fixed to ensure that CircleCI will build correctly.
