Install Grenache Grape: https://github.com/bitfinexcom/grenache-grape:
npm i -g grenache-grape// Start 2 Grapes
grape --dp 20001 --aph 30001 --bn '127.0.0.1:20002'
grape --dp 20002 --aph 40001 --bn '127.0.0.1:20001'
A test application using the Grenache library to demonstrate distributed systems. The application randomly generates buy/sell orders and sends them to random client nodes in the network. THIS IS A POC NOT FULLY WORKING
- Clone the repository
- Install dependencies:
npm install
Run the application:
npm startRun the order generator on separate terminal:
npm run start:generator- Randomly generates buy/sell orders with a unique ID, quantity, and price.
- Sends generated orders to a randomly selected client node every 5 seconds.
axios: For HTTP requestsuuid: To generate unique IDsgrenache-nodejs-http: Grenache HTTP transport layergrenache-nodejs-link: Grenache link layer