-
Clone the git repo.
git clone git@github.com:sitati-elsis/bitfinex-test.git
-
cd
into the repo you have just cloned.cd bitfinex/
-
Install grenache
npm i -g grenache-grape
-
Install project dependences
npm install
-
Boot two grape servers
grape --dp 20001 --aph 30001 --bn '127.0.0.1:20002' grape --dp 20002 --aph 40001 --bn '127.0.0.1:20001'
-
Bring up the node server
node server.js
-
Bring up a client
node client.js
-
Give the client inputs
- Ask <amount> <price> or Bid <amount> <price>
-
You can bring up a second client and communicate with the server through it
-
Here is a screen recording showing how I am interacting with the client and server components of the task. You can download and view it.