Compass Product Flow Compass Services Diagram
This repository is a part of the Compass Marketplace where consumers and purchase courses and upskill their competencies and third party course providers and onboard and add their courses. It handles the backend server dealing with the use cases of the course providers and partially the admin. Particularly, the entire provider flow on the marketplace which would include adding and updating courses and admin use cases of verifying the providers and courses and settling provider wallet balances. The tech stack used is NestJS with Prisma ORM and PostgreSQL.
The Course managermodule is dependent on the modules Marketplace portal and Marketplace Wallet Service.
- Install the necessary package dependencies
npm i
- Set up a PostgreSQL in your local environment
- Set up the environment variables as suggested in the example file
- Generate Prisma migrations
npx prisma migrate dev
If seed data is required, it can be populated by runningnpx prisma db seed
ornpx prisma migrate reset
(The latter will also reset the database and delete all previous data)
An auto compiled running server can then be initialized using,
npm run start:dev
The Swagger API documentation could be found at YOUR_APP_PORT/api/docs