This project contains a simple client in Node that uses the numbers-protos library to make calls to the MoneyService gRPC service (implemented in Java here).
You can read the full tutorial for these examples here.
You'll need Node and protop. You'll also need an implementation of the MoneyService
running at localhost:8080
.
Install with:
yarn install
and then you can run the script:
node .
You should get a console output similar to the following:
Original: 7.3406037480265685 USD
Converted: 5.33649466631217 MXN