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