Local setup using NPM
Clone the platform repository from GitHub:
git clone https://github.com/credebl/platform.git cd platformCreate a .env file and set the required environment variables as per the .env.sample file.
Install the pnpm package using the following command if it isn’t already installed on your machine:
npm install -g pnpmInstall dependencies
pnpm iKeep your database schema in sync with your Prisma schema as it evolves and Maintain existing data in your database.
cd libs/prisma-service/ npx prisma migrate deployGenerate Prisma Client to access schema model with the following command:
npx prisma generateFor initial master table entry create a credebl-master-table.json file at lib/prisma-service/prisma/data and set the required variables as per the credebl-master-table.json file.run following command.
npx prisma db seedTo start the API gateway
pnpm run startTo start all microservices using below command followed by microservice name, example: start user service.
pnpm run start userAccess the Platform API by navigating to:
http://localhost:5000Using swagger to access platform API
If you’re running docker locally, access the CREDEBL platform swagger dashboard through the API gateway on port 5000.
http://localhost:5000/api