https://github.com/fajarbc/grpc-nodejs-example
Example project of using gRPC in Nodejs
https://github.com/fajarbc/grpc-nodejs-example
Last synced: about 2 months ago
JSON representation
Example project of using gRPC in Nodejs
- Host: GitHub
- URL: https://github.com/fajarbc/grpc-nodejs-example
- Owner: fajarbc
- Created: 2022-04-23T18:29:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-23T18:30:13.000Z (about 4 years ago)
- Last Synced: 2025-01-17T13:48:26.842Z (over 1 year ago)
- Language: JavaScript
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gRPC in Nodejs : Todo App
Example project of using gRPC in Nodejs
## Install
1. Copy `env` to `.env`
2. Install NPM dependencies
```bash
npm i
```
## Server
bash
npm run server
## Client
1. Init data (sent default data todos)
```bash
node client/init-data
```
2. Sent data. Change `"your text is here"` to whatever text data you want to send
```bash
node client/request "your text is here"
```
3. Read data todos
```bash
node client/read
```
4. Streams data todos
```bash
node client/stream
```