- Clone this repository
- Run
npm run hwboard config
to start the config process - Run
npm run hwboard add channel
to add a channel - Run
npm run start:dev
to start hwboard. - To run hwboard in the background, run
npm start
- This will start hwboard in cluster mode
This means that a hwboard process will be started for each core of your machine
Usenpm start -- -i <number of processes>
to override
- This will start hwboard in cluster mode
Note: You may need sudo
for commands that require docker.
- Configure hwboard
npm run hwboard config docker
docker-compose up
- Add the
-d
option to detach
- Add the
- Get a bash shell within the container
docker exec -it hwboard2_web_1 /bin/bash
- The container name should be
<current directory name>_web_1
- Run
npm run hwboard add channel
to add a channel - Run
npm start
Hwboard is run in production using pm2
.
- Install
pm2
npm i -g pm2
- List processes:
pm2 list
- Check memory usage:
pm2 monit
- Check logs:
pm2 log hwboard2-web
- Full logs are in
~/.pm2/logs
- Full logs are in
- Scale process:
pm2 scale hwboard2-web <number of nodes>
- Delete process:
pm2 delete hwboard2-web
Hwboard uses snyk to ensure that dependencies are free of vulnerabilities
Snyk requires an authenticated account. Sign up here.
To run tests without checking dependencies, run mocha test
instead of npm test
.
You may also like to run npm audit
to check dependencies.