This basic nodeJS RPC client fetches the coinbase and the blocknumber on both nodes. Anyone interested in extending the client might want to have a look at the JSON-RPC documentation.
- Install node:
$ node --version
v9.5.0
- Install npm:
$ npm --version
5.6.0
npm install
node index.js