Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 647 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 647 Bytes

GRPC DEMO WITH REACT.JS AND NODE CLIENT

For Run App

  • npm i
  • npm i protoc-gen-grpc-web
  • Install protoc-gen-grpc-web
  • Install protoc
  • in src folder run this command protoc -I. helloword.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.
  • Run Server nodemon server.js or node server.js
  • Run envoy server docker run -d -v $pwd/envoy.yaml:/etc/envoy/envoy.yaml:ro -p 8080:8080 -p 9901:9901 envoyproxy/envoy:v1.17.0
  • React: npm run start
  • For node client node node_client.js