https://github.com/thutasann/nest-grpc
tiny nestjs grpc microservices
https://github.com/thutasann/nest-grpc
grpc nestjs
Last synced: 3 months ago
JSON representation
tiny nestjs grpc microservices
- Host: GitHub
- URL: https://github.com/thutasann/nest-grpc
- Owner: thutasann
- Created: 2024-05-18T09:47:25.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-18T14:47:06.000Z (about 1 year ago)
- Last Synced: 2025-01-09T02:22:04.626Z (5 months ago)
- Topics: grpc, nestjs
- Language: TypeScript
- Homepage:
- Size: 422 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nestjs gRPC Microservices
This is the mini microservices with `nestjs` and `gRPC`.
## Tech Stacks
- nestjs
- gRPC## Script
### Generate App
```bash
nest generate app auth
```### Generate Resource
```bash
nest g resource users
```### Generate Lib
```bash
nest g lib common
```### Run Service
```bash
yarn start:dev apigateway
``````bash
yarn start:dev auth
```### proto generate
```bash
protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./ --ts_proto_opt=nestJs=true ./proto/auth.proto
```