An open API service indexing awesome lists of open source software.

https://github.com/litsynp/grpc-ts-node-practice

This is a practice project for gRPC with Node.js and TypeScript.
https://github.com/litsynp/grpc-ts-node-practice

grpc grpc-client grpc-server node typescript

Last synced: 5 months ago
JSON representation

This is a practice project for gRPC with Node.js and TypeScript.

Awesome Lists containing this project

README

          

# gRPC - TypeScript - Node Practice

This is a practice project for gRPC with Node.js and TypeScript.

## How to run

### Generate proto files

```bash
$ chmod +x ./proto-gen.sh
$ npm run proto:gen
```

### Run the gRPC server

```bash
$ npm run server
```

### Run the gRPC client

```bash
$ npm run client
```

## How to run (with build)

### Build

```bash
$ npm run build
```

### Run the gRPC server

```bash
$ node dist/server
```

### Run the gRPC client

```bash
$ node dist/client
```

## Result

![server-client example](https://user-images.githubusercontent.com/42485462/211161120-594476ae-f1ed-499f-9cb2-582a35a97c46.png)