- Node.js
- npm
- Install grape and run 2 nodes
npm i -g grenache-grape
grape --dp 20001 --aph 30001 --bn '127.0.0.1:20002'
grape --dp 20002 --aph 40001 --bn '127.0.0.1:20001'
- Clone the repo
git clone https://github.com/jfkz/rpc-server-example
- Install dependencies
cd rpc-server-example
npm i
- Run 3 clients (in different terminals). They implemented 3 different scenarios:
npm run start:client1
npm run start:client2
npm run start:client3
- Enjoy