Sign inSign up

jfbrandhorst/grpcweb-example

By jfbrandhorst

•Updated about 6 years ago

Demo application for GopherJS gRPC-Web bindings

Image
0

1.2K

jfbrandhorst/grpcweb-example repository overview

⁠Go gRPC-Web Example

Circle CI Go Report Card GoDoc

gRPC-Web Gopher by Egon Elbre (@egonelbre)

An example implementation of a GopherJS React⁠ client talking to a Go gRPC server using the Improbable gRPC-Web client implementation and proxy through the protoc-gen-gopherjs⁠ bindings generator.

A live demo of this application can be found on https://grpcweb.jbrandhorst.com⁠.

⁠Developing

To run the server on https://localhost:10000:

$ go run main.go

Then you'll need to also install some vendored generators:

$ make install

After that, any changes you make to the proto file in ./proto/ or the JS client code in ./client/ should be followed by

$ make regenerate

You may need to generate the client code twice as the first time will run reactGen and immutableGen which might be necessary for the subsequent gopherjs build to work.

Tag summary

Content type

Image

Digest

Size

7.7 MB

Last updated

about 6 years ago

docker pull jfbrandhorst/grpcweb-example