Giter VIP home page Giter VIP logo

hwboard's Introduction

Hwboard v2

Master Branch (stable)
pipeline status
Known Vulnerabilities

Dev Branch:
pipeline status
Known Vulnerabilities

Installation

  1. Clone this repository
  2. Run npm run hwboard config to start the config process
  3. Run npm run hwboard add channel to add a channel
  4. Run npm run start:dev to start hwboard.
  5. 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
      Use npm start -- -i <number of processes> to override

Running with docker-compose

Note: You may need sudo for commands that require docker.

  1. Configure hwboard
    • npm run hwboard config docker
  2. docker-compose up
    • Add the -d option to detach
  3. 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
  4. Run npm run hwboard add channel to add a channel
  5. Run npm start

Monitoring and scaling

Hwboard is run in production using pm2.

  1. Install pm2
    • npm i -g pm2
  2. List processes: pm2 list
  3. Check memory usage: pm2 monit
  4. Check logs: pm2 log hwboard2-web
    • Full logs are in ~/.pm2/logs
  5. Scale process: pm2 scale hwboard2-web <number of nodes>
  6. Delete process: pm2 delete hwboard2-web

Testing

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.