grpcweb-example

An example implementation of a GopherJS client and a Go server using the Improbable gRPC-Web implementation

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownerjohanbrandhorst/grpcweb-example
Primary LanguageGo
Program languageGo (Language Count: 4)
Platform
License:MIT License
所有者活动
Created At2017-05-16 20:09:55
Pushed At2021-06-07 02:51:21
Last Commit At2021-06-06 22:48:25
Release Count0
用户参与
Stargazers Count95
Watchers Count9
Fork Count12
Commits Count184
Has Issues Enabled
Issues Count17
Issue Open Count1
Pull Requests Count10
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private