HRsniper / grpc-node-yarn-2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gRPC with nodejs and yarn

application made in node.js with gRPC server and javascript/typescript.

Install dependencies

  • yarn

Compiling the protofiles

To compile the .proto files, you need to have protoc installed (it's important to add in your environment variables in the PATH).

  • yarn compile # in the root directory

Start server

  • yarn start

Start client (in another terminal)

  • yarn client

Insomnia

The Insomnia.json file contains the gRPC/HTTP2 requests for Insomnia.

Importing Insomnia.json into Insomnia

Click Create ▼, and in IMPORT FROM, click File, select the Insomnia.json path, click on it, and click Import.

A Collection will be created with the name gRPC, click on it and it will open all the requests that are in the Insomnia.json file.


SSL/TLS

Na branch ssl-tls temos a implementação de ssl/tls para o protocolo https.

About


Languages

Language:JavaScript 90.5%Language:TypeScript 9.5%