Skip to content

mojaloop/reporting-hub-bop-api-svc

Repository files navigation

Mojaloop Reporting API

Build

From the repo root:

docker build -t reporting-api .

Run

Copy .env.example template to .env and modify it as you wish

cp .env.example .env

Run docker container

docker run -p 3000:3000 --env-file=.env reporting-api

where reporting-api is the image name from the build stage:

Open http://localhost:3000 in browser to run queries

Changing database schema

  1. Update Prisma schema by performing introspection on existing database

Note: this will overwrite existing schema in ./prisma/centralLedger.prisma

npm run prisma:pull
  1. Modify ./prisma/overlays/centralLedger.prisma and ./prisma/overlays/eventStore.prisma as needed

  2. Generate artifacts

npm run generate