From the repo root:
docker build -t reporting-api .
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
- Update Prisma schema by performing introspection on existing database
Note: this will overwrite existing schema in
./prisma/centralLedger.prisma
npm run prisma:pull
-
Modify
./prisma/overlays/centralLedger.prisma
and./prisma/overlays/eventStore.prisma
as needed -
Generate artifacts
npm run generate