Configuration environment for running an
ilp-connector
Redis
Install Redis using brew on Mac:
brew install redisStart running the background service:
brew services start redisThe default configuration should work out of the box. If necessary, however, you can edit it here:
sudo open /usr/local/etc/redis.confTo confirm it works, run:
redis-cli pingIf that command output PONG, you're in business!
git clone https://github.com/Kava-Labs/connector-config.git
cd connector-config
npm installStart connector as a regular Node.js process:
npm run devDebugging with inspect:
- Auto-magically find an inspect port beginning from the default port
9229, counting up - Alternatively, manually assign a port to the
INSPECTenvironment variable
Adding ports to Chrome network targets:
- Go to
chrome://inspect/#devicesin Google Chrome and clickConfigure.... Then, add ports counting up from9229like so:
Start connector as a long-running background process via PM2 daemon:
npm run start
# or
npm run restart- Logs will be in
~/.pm2/logs/ilp-connector-combined.log - Running
npm run restartwill run thestartscript and tail the logs
