This repository host codebase for CREDEBL SSI Platform backend.
Install Docker and docker-compose See: https://docs.docker.com/engine/install/
Install Node: >= 18.17.0 See: https://nodejs.dev/en/learn/how-to-install-nodejs/
Install NestJS
npm i @nestjs/cli@latest
Setup & run postgres Start the postgresql service using the docker:
docker run --name some-postgres -p 5432:5432 -e POSTGRES_PASSWORD=<secretpassword> -e POSTGRES_USER=credebl -d postgres
Run prisma to generate db schema
cd ./libs/prisma-servie/prisma
npx prisma generate
npx prisma db push
Seed initial data
cd ./libs/prisma-servie
npx prisma db seed
NATS is used for inter-service communication. The only pre-requisite here is to install docker.
docker pull nats:latest
docker-compose
The docker-compose.yml
file is available in the root folder.
docker-compose up
npm install
.env
before you start the API GatewayYou can optionally use the --watch
flag during development / testing.
nest start [--watch]
organization service
micro-service run below command in a separate terminal windownest start organization [--watch]
nest start user [--watch]
nest start ledger [--watch]
nest start connection [--watch]
nest start issuance [--watch]
nest start verification [--watch]
nest start agent-provisioning [--watch]
nest start agent-service [--watch]
http://localhost:5000/api
The CREDEBL platform is built by Blockster Labs (Product division of AyanWorks) team. For the core SSI capabilities, it leverages the great work from multiple open-source projects such as Hyperledger Aries, Bifold, Asker, Indy, etc.
Pull requests are welcome! Please read our contributions guide and submit your PRs. We enforce developer certificate of origin (DCO) commit signing — guidance on this is available. We also welcome issues submitted about problems you encounter in using CREDEBL.