How To

Add a new Node

Prerequisites

  • Storm.dev account - You must have an account on storm.dev to access our network.
    • Register here to join our community
  • git - For clone this repo and for future updates
  • NodeJs & npm
  • Install

    1. Go to the node page: https://storm.dev/nodes and click on the "Add Node" button. Responsive image
    2. In the modal that has opened:
      • OR (TESTING) Select the distribution of device and the workspace in which share the node, and copy the "curl" command through the "copy" button at the top right of the text box, which appears when the mouse hovers over it. Responsive image
      • OR If your device distribution are not in the list, select "maunal installation", click on next and copy the "one line installer" command through the "copy" button at the top right of the text box, which appears when the mouse hovers over it. Responsive image
    3. Open a terminal in the path where you want to install the node and run the copied command.
      git clone 'https://github.com/stormdotdev/stormnode.git' &&
      > cd stormnode &&
      > node -e "require('https').get('https://storm.dev/jsonnode/5020flqjed0949502214ayq27kcp1vj20054fa0846/stormnode.json', f => {f.pipe(require('fs').createWriteStream('stormnode.json'));});" &&
      > npm install --production
      Cloning into 'stormnode'...
      remote: Enumerating objects: 8, done.
      remote: Counting objects: 100% (8/8), done.
      remote: Compressing objects: 100% (8/8), done.
      remote: Total 2484 (delta 3), reused 5 (delta 0), pack-reused 2476
      Receiving objects: 100% (2484/2484), 1.11 MiB | 1.10 MiB/s, done.
      Resolving deltas: 100% (636/636), done.
      added 106 packages from 67 contributors and audited 106 packages in 3.524s
    4. Start the node with the command
      node stormnode.js -v
      You will see in the terminal the node version, the node id and the connection succes alert.
      ver. 0.1.54
      Node_id: storm-4ayq-kcp1vjflqjed
      connected
    5. If you refresh the nodes page, immediately, the box of node will appear. After about ten seconds if you refresh the nodes page you will see the box of your node change. The box will show the IP, the nation and the status dot (green-active, red-offline). Responsive image
    6. After a few tens of seconds the node will automatically call the host info function.
      {"signature":"QHK1lrzqtN8iqZPrxGOQ0zl19RSUTIYj7JW4Hm7s2d5NvUxj/vlqVUkPck/0WIYhTZSpAApQwvr41pt0zRfDdefiP/lDOeSVF3RDw9W+4/2nHuPzPIh3lzCJWsDchjji1PzMJxwNAo3ezYoNswZs+Wm54GjsVhmgUVbpwvc5eB8=","command":"execute","channel":"senderapi_5a3bbe36-9279-4d0d-84bd-b5ab907d5360","modulepath":"system/hostinfo.js","authtype":"all","arguments":null}
      { nodeId: 'storm-4ayq-kcp1vjflqjed',
        modulepath: 'system/hostinfo.js',
        return:
         { hostname: 'host_name',
           manufacturer: '',
           model: '',
           serial: '',
           arch: 'x64',
           cpus:
            [ 'Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz',
              'Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz',
              'Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz',
              'Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz' ],
           cpumanufacturer: 'Intel®',
           cpubrand: 'Core™ i5-6200U',
           platform: 'linux',
           distro: 'Ubuntu',
           release: '',
           totalmem: 8474492928,
           humanTotalMem: '7.9 GiB',
           uptime: 1322,
           disks: [ [Array] ] } }
      If the node name (tutorial) has not changed yet, the default name (which previously coincided with the id), if you refresh the nodes page, the name will be changed to the host name. Responsive image

    For the github wiki click here: https://github.com/stormdotdev/stormnode/wiki

    Keep Storm alive

    If you want your node to reconnect automatically with each disconnection, follow our guide to configure the node installed with supervisor: Keep stormnode alive

    For the github wiki click here: https://github.com/stormdotdev/stormnode/wiki/Keep-stormnode-alive