Skip to content

Latest commit

 

History

History
71 lines (53 loc) · 2.52 KB

File metadata and controls

71 lines (53 loc) · 2.52 KB

Transfers Bounded Context - Transfers Service

Install

See notes in root dir of this repository More information on how to install NVM: https://github.com/nvm-sh/nvm

Build

npm run build

Run this service

Anywhere in the repo structure:

npm run packages/event-handler-svc start

Auto build (watch)

npm run watch

Unit Tests

npm run test:unit

Integration Tests

npm run test:integration

Docker image build

Notes:

  • run at the root of the monorepo
  • update the version tag at the end (0.1.0) to match the version on package.json
docker build -f packages/transfers-api-svc/Dockerfile -t mojaloop/transfers-bc-transfers-api-svc:0.1.0 .

Configuration

Environment variables

Environment Variable Description Example Values
PRODUCTION_MODE Flag indicating production mode FALSE
LOG_LEVEL Logging level for the application LogLevel.DEBUG
AUTH_N_SVC_BASEURL Authentication service base URL http://localhost:3201
AUTH_N_TOKEN_ISSUER_NAME Authentication service token issuer name mojaloop.vnext.dev.default_issuer
AUTH_N_TOKEN_AUDIENCE Authentication service token audience mojaloop.vnext.dev.default_audience
AUTH_N_SVC_JWKS_URL Authentication service base URL http://authentication-svc:3201
AUTH_Z_SVC_BASEURL Authorization service base URL http://authorization-svc:3202
KAFKA_URL Kafka broker URL localhost:9092
MONGO_URL MongoDB connection URL mongodb://root:mongoDbPas42@localhost:27017/
KAFKA_LOGS_TOPIC Kafka topic for logs logs
KAFKA_AUDITS_TOPIC Kafka topic for audits audits
AUDIT_KEY_FILE_PATH File path for audit key /app/data/audit_private_key.pem
SVC_CLIENT_ID Service client ID transfers-bc-api-svc
SVC_CLIENT_SECRET Service client secret superServiceSecret
SVC_DEFAULT_HTTP_PORT Default HTTP port for the service 3500
SERVICE_START_TIMEOUT_MS Timeout for service startup in milliseconds 60_000
SVC_HTTP_PORT HTTP port for the service 3500