Skip to content

jellydn/grpc-demo-monorepo

Repository files navigation

Welcome to gRPC-Demo-Apps 👋

License: MIT Twitter: jellydn

Grpc Demo Apps with Go/NodeJS

IT Man - Tech #36 - gRPC 101

Prerequisites

  • node >=18.0.0
  • go >= 1.19
  • protoc: Protocol Buffer Compiler Installation
  • buf:A new way of working with Protocol Buffers.
  • grpcurl: Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers

Install

yarn install

Generate code from .proto files

yarn proto:types

Usage

yarn dev

Applications

  • hello: simple Typescript implementation of hello world RPC from gRPC nodejs example.

https://gyazo.com/23244180cb415bbc57bebbf4e9599a74.gif

https://gyazo.com/ac564703c07b4e011e6bbe7883ee021d.gif

https://gyazo.com/4c8dae4294ca82b4bb12fe8ca78106e5.gif

  • hello-twirp: hello service written in Go with twirp.

https://gyazo.com/ba2f444ff2bc17ad25ebce84eae4ef7f.gif

  • modern-hello: the rewrite version of hello app with protobuf-es

https://gyazo.com/527ea9740b4c94a6acee0d81917cd355.gif

  • web: a hello nextjs 13 app with 2 Grpc services

https://gyazo.com/e80cc51056ad95f0cf51869d3d5b3d20.gif

More detail of each readme file on each application.

Resources

  • grpc: A high performance, open source universal RPC framework.
  • twirp: A simple RPC framework with protobuf service definitions.
  • protobuf-es:Protocol Buffers for ECMAScript.
  • bufbuild/connect-es Connect, gRPC, and gRPC-Web support for Protobuf and TypeScript.
  • connect-go: Simple, reliable, interoperable. A better gRPC.
  • @grpc/grpc-js: Pure JavaScript gRPC Client
  • @grpc/proto-loader: A utility package for loading .proto files for use with gRPC, using the latest Protobuf.js package.
  • grpc-web: gRPC Web implementation for Golang and TypeScript
  • proto-client: A typed gRPC Client with static code generation
  • deeplay-io/nice-grpc: A TypeScript gRPC library that is nice to you
  • SafetyCulture/grpc-web-devtools: Chrome & Firefox Browser extension to aid gRPC-Web development

Useful References

How does gPRC Work?

Thank you for the images from bytebytego.

grpc

grpc

Author

👤 Dung Huynh

Show your support

kofi paypal buymeacoffee

Stargazers repo roster for @jellydn/grpc-demo-monorepo

Give a ⭐️ if this project helped you!