clone the repository then go to this docker folder /configuration/grpc_web/docker and run
docker build --build-arg SIGNAL_SERVER_HOST_NAME=127.0.0.1 -t envoy:v1 .
unless you intend to start it with docker compose you could, start it
docker run -p 8081:8081 envoy:v1
SIGNAL_SERVER_HOST_NAME should point to the machine where signalbroker-server is hosted
- Run the pre built frontend, that is; iex -S mix
- Alternatively use the generated js files to access the grpc server using your web code.
inspiration from https://github.com/grpc/grpc-web/ and https://hackernoon.com/interface-grpc-with-web-using-grpc-web-and-envoy-possibly-the-best-way-forward-3ae9671af67
proto files are avalible in: signal_server/apps/grpc_service/proto_files/
to re-generate files - or just grab the files from the generated folder
- git clone https://github.com/grpc/grpc-web.git
- make plugin
- make sure to copy protoc-gen-grpc-web to a discoverable path such as /user/local/bin
mkdir generated. Run the command from "this" directory!
protoc ./proto_files/*.proto -I./proto_files/ --js_out=import_style=commonjs:generated --grpc-web_out=import_style=commonjs,mode=grpcwebtext:generated