Usage:
- Clone the repo
- Run
npm install
- Start the server
npm start
- The above step will expose
http://localhost:3000/protoApi
which will sends data as protobuf buffer - Run
node client.js
to decode the data in frontend
Any changes done in data.js
(or if data.js is getting json from some API) we have to update the proto/awesome.proto schema as well.