Skip to main content

protobuf

protobuf

proto

https://github.com/protocolbuffers/protobuf

https://developers.google.com/protocol-buffers/docs/reference/javascript-generated

server

brower

js

protobufjs

ts

ts-protoc-gen

protoc --plugin=protoc-gen-ts="{ABSOLUTEPATH}\node_modules\.bin\protoc-gen-ts.cmd"
--js_out="import_style=commonjs,binary:src/app/generated"
--ts_out="service=grpc-web:src/app/generated" src/app/protos/{YOURPROTOFILENAME}.proto

graph LR
A[Server] -->|protobuf| B[FE Client]
A[Server] -->|protobuf| C[BE Client]
C -->|protobuf| A
B -.->|protobuf| C
C -.->|protobuf| B
# filename: orderListRes-{git-commit-key}.proto

git pull
proto-git pull/push [Advanced CLI]
start/build