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
ornode 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
-
Notifications
You must be signed in to change notification settings - Fork 0
Akifcan/grpc-web-demo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
grpc api demo with react and node server
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published