Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/single9/example-nest-grpc-monorepo
An example of Nest.js monorepo and gRPC
https://github.com/single9/example-nest-grpc-monorepo
example grpc grpc-js nest nestjs typescript
Last synced: 2 days ago
JSON representation
An example of Nest.js monorepo and gRPC
- Host: GitHub
- URL: https://github.com/single9/example-nest-grpc-monorepo
- Owner: single9
- Created: 2021-12-06T10:04:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-13T10:04:12.000Z (about 3 years ago)
- Last Synced: 2024-11-12T14:53:39.839Z (2 months ago)
- Topics: example, grpc, grpc-js, nest, nestjs, typescript
- Language: JavaScript
- Homepage:
- Size: 138 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Description
An example of Nest.js
- [Nest](https://github.com/nestjs/nest)
- [gRPC](https://grpc.io/)## Installation
```bash
$ yarn
```## Running the app
```bash
# development
$ yarn start [app_name]# watch mode
$ yarn start:dev [app_name]# production mode
$ yarn start:prod [app_name]
```> Default `app_name` is `api`
```bash
# Start app in terminal #1
$ yarn start
# Start gRPC server in terminal #2
$ yarn start grpc-server
```Open http://localhost:3000 in your browser.
Try to type http://localhost:3000/MyName and http://localhost:3000/ne5.
## Test
```bash
# unit tests
$ yarn test [app_name]# e2e tests
$ yarn test:e2e [app_name]# test coverage
$ yarn test:cov [app_name]
```## Generating gRPC Code
```bash
$ yarn gen:grpc
```