grpcweb-example

command module
v0.0.0-...-9a2beb2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 16 Imported by: 0

README

Go gRPC-Web Example

Circle CI Go Report Card GoDoc

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto/library
Package library is a generated protocol buffer package.
Package library is a generated protocol buffer package.
proto/library
Package library is a generated protocol buffer package.
Package library is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL