Make sure you have node installed first. If you don't have it, get it from here: https://nodejs.org/en/
Demo uses WebSocket which is a TCP protocol. You can find more information here and here. Note the mozilla one is not the one we are using, that one is for browsers. This can also work in the browser (Currently only way to maintain tcp connection in browser)
Once you have that, run this command in the directory
npm install
To start the server
node minerjs
To start the miner.
node miner.js<ip optional>
Starting the miner with no ip will default to localhost.
npm install -g node-gyp
If you are on windows you might need this
To configure
node-gyp configure
And to build
node-gyp build