Skip to content

Instantly share code, notes, and snippets.

@dashersw
Created May 8, 2017 22:41
Show Gist options
  • Save dashersw/c7bcb683a960654c7db2b87c617a825b to your computer and use it in GitHub Desktop.
Save dashersw/c7bcb683a960654c7db2b87c617a825b to your computer and use it in GitHub Desktop.
Hassle-free microservices with cote.js — conversion-client.js
const cote = require('cote');
const requester = new cote.Requester({ name: 'currency conversion requester' });
const request = { type: 'convert', from: 'usd', to: 'eur', amount: 100 };
requester.send(request, (res) => {
console.log(res);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment