This project is aiming to track Socket protocol and report and act against mismatches than can happen.
- NodeJS
- Yarn
Clone project and install dependencies.
# clone the repository
git clone https://github.com/bilbeyt/socket_monitor
# move to repository folder
cd socket_monitor
# install node modules
yarn install
You can trigger linter by using below command.
yarn lint
You can run unit tests by running:
yarn test:unit
You can run tests with coverage by running:
yarn test:coverage
-
Create a config file using the template app.conf.template. Check reference for more information.
-
Run below command to gather deployment artifacts of Socket.tech:
curl -sSfL https://registry.npmjs.org/@socket.tech/dl-core/-/dl-core-2.4.15.tgz | tar xz -C data --strip-components=1 package/artifacts package/dist/deployments
-
Create a keystore file for your account that has funds on it and put it inside data directory created by previous command.
yarn monitor ${config-file-you-created}
.
This step requires Docker.
-
Build the image using below command.
docker build -t socket-monitor
-
Run the image:
docker run -v ${pwd}/data:/project/data -v ${pwd}/{config-file-you-created}:/project/app.conf socket-monitor