Skip to content

Node GRPC Server Integrated with Polymer via Envoy

License

Notifications You must be signed in to change notification settings

oinke/grpc-polymer

Repository files navigation

Polymer GRPC - Starter Kit

Setup

Prerequisites

Install Polymer CLI using npm (we assume you have pre-installed node.js).

npm install -g polymer-cli --unsafe-perm

To generate the protobuf messages and client service stub class from your .proto definitions, we need the protoc binary and the protoc-gen-grpc-web plugin.

You can download the protoc-gen-grpc-web protoc plugin from our release page:

If you don't already have protoc installed, you will have to download it first from here.

Make sure they are both executable and are discoverable from your PATH.

For example, in MacOS, you can do:

$ sudo mv ~/Downloads/protoc-gen-grpc-web-1.0.3-darwin-x86_64 \
  /usr/local/bin/protoc-gen-grpc-web
$ chmod +x /usr/local/bin/protoc-gen-grpc-web

When you have both protoc and protoc-gen-grpc-web installed, you can now run these commands:

npm install
npm run dockerBuild
npm run dockerRun
npm run protoc
npm run webpack
pm2 start ecosystem.config.js 

Browse to http://localhost:8090/ and click on the numnber 1 while looking at the console

About

Node GRPC Server Integrated with Polymer via Envoy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published