Skip to content

JibinNajeeb/gRPC-Angular-and-Java-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build protoBuf

Download and install protocol Buffer app from https://developers.google.com/protocol-buffers/docs/downloads.

Execute the command: protoc -I=SRC_DIR --java_out=DST_DIR SRC_DIR/HelloService.proto. This will generate required java files required to communicate with rpc server or client

For generating typescript(experimental) files Install protoc-gen-grpc-web plugin

Execute command: protoc -I=DIR echo.proto --js_out=import_style=typescript:generated --grpc-web_out=import_style=typescript,mode=grpcwebtext:generated. The ts codes will be available in generated folder.

JAVA

mvn install

mvn exec:java -Dexec.mainClass="org.baeldung.grpc.server.GrpcServer" -Dexec.classpathScope=runtime

Envoy

cd envoy

docker build -t grpc-web-envoy .

docker run -d -p 9090:9090 grpc-web-envoy .

Angular

ng serve. Open browser. Then check console

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published