- Run
npm install
- Compile proto files using next command
npm run build:proto
- Generate typescript .d.ts files running
npm run build:proto-types
- Run server with command
npm run start:server
- Run client with command
npm run start:client
- You may run multiple clients
- Run test with command
npm run test
gRCP server listening at http://127.0.0.1:50051
, server will log all actions
Each running client will do next job
- Get current edges
- Subscribe for edges updates
- Create Person Node
- Create Game nodes randomly every 1-5 seconds
- Add Edges for 'Person - Game' nodes after each iteration
- After 15 seconds Client will remove one edge
Client will stop send new Game\Edge requests randomly after 5-50 iterations All connected clients will see if any edge updates were made