nurcinozer / grpc-nest-microservice-monorepo

microservice architecture with the Database per Service pattern.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Initial install

$ cd packages/app-routes && npm run build
$ cd ../monorepo-ts-shared && npm run build
$ cd ../../ && npm run lerna
$ npm run envgen
$ docker-compose up

Open a new bash and run each service indivicually

$ cd service/auth-service/prisma && npx prisma generate && npx prisma db push
$ cd service/o-auth-service/prisma && npx prisma generate && npx prisma db push

Create new service

# give services directory and service name ./<<services-dir>>/<<service-name>>
$ npm run service:create -- ./services/new-example-service
$ npm run lerna

About

microservice architecture with the Database per Service pattern.


Languages

Language:TypeScript 96.8%Language:JavaScript 1.8%Language:Shell 1.3%