Skip to content

Guya-LTD/refme

Repository files navigation

REFME

Reference service

Generating stubs

Exports:

$ export DIR="$HOME/some/path" OUT_DIR="$HOME/some/path/grpc"
$ protoc -I=$DIR echo.proto \
    --js_out=import_style=commonjs:$OUT_DIR \
    --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR

or

$ protoc -I=$DIR  \
    --js_out=import_style=commonjs:$OUT_DIR \
    --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR

Usage

Envoy

Runns on localhost:8080

Proxy from :8080 to :50051 Rpc