Small Node.js app that sends API requests to an OriginTrail node, testing the different APIs. The application runs in a loop, provisioning an asset and then sending a number of requests to the different APIs.
- Clone repository to your node server:
git clone https://github.com/Aescwine/otnode-tester.git cd otnode-tester
- Update
node-tester.jsas required, adjusting the number of requests per loop and the wait time between requests. Note: adjusting these will impact your node's performance.
- Run command:
npm install - Copy service file:
cp ./service/nodetester.service /lib/systemd/system/ - Enable service:
systemctl enable nodetester.service - Start service (requires node to be running):
systemctl start nodetester.service - Show service logs with
journalctl -u nodetester --output cat -fn 100