Generate js files with protoc for GRPC web on Windows

  • Download protoc
  • Download protoc-gen-grpc-web
  • Add to system environment variable PATH the path to protoc-gen-grpc-web for example : C:\protoc-gen-grpc-web\
  • Then run on powershell or windows command the following command :
protoc --proto_path=proto --js_out=import_style=commonjs,binary:proto --grpc-web_out=import_style=commonjs,mode=grpcwebtext:proto pathToProto/myProto.proto