Post
Topic
Board Announcements (Altcoins)
Re: [ANN] SOIL - fair launch, environmentally conscious, community driven
by
soil
on 03/12/2015, 09:03:06 UTC
HowTo join http://stats.soilcoin.xyz

Please note: You need a running gsoil instance with --rpc (rpc enabled) on you pc/server in order to join the stats

Ubuntu:

Install node.js:
Code:
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs

Get and install eth-net-intelligence-api:
Code:
git clone https://github.com/soilcurrency/eth-net-intelligence-api.git
cd eth-net-intelligence-api
npm install
sudo npm install -g pm2

Edit the app.json file:
Code:
[
  {
    "name"              : "node-app",
    "script"            : "app.js",
    "log_date_format"   : "YYYY-MM-DD HH:mm Z",
    "merge_logs"        : false,
    "watch"             : false,
    "max_restarts"      : 10,
    "exec_interpreter"  : "node",
    "exec_mode"         : "fork_mode",
    "env":
    {
      "NODE_ENV"        : "production",
      "RPC_HOST"        : "localhost",
      "RPC_PORT"        : "39421",
      "LISTENING_PORT"  : "39420",
      "INSTANCE_NAME"   : "YOUR NODE NAME",
      "CONTACT_DETAILS" : "EMAIL, WALLET, WHATEVER",
      "WS_SERVER"       : "http://45.63.4.165:3000",
      "WS_SECRET"       : "ilikesoil1.4.0",
      "VERBOSITY"       : 2
    }
  }
]

Finally run the process with:
Code:
pm2 start app.json

Windows:

Install python:
Choose add "python to path" in the dialog window.
Python

Install nodejs:
https://nodejs.org

Get eth-net-intelligence-api:
Download

Extract it to e.g. "C:\Users\username\Desktop"

Edit  "INSTANCE_NAME" in the file app.json:
Code:
[
  {
    "name"              : "node-app",
    "script"            : "app.js",
    "log_date_format"   : "YYYY-MM-DD HH:mm Z",
    "merge_logs"        : false,
    "watch"             : false,
    "max_restarts"      : 10,
    "exec_interpreter"  : "node",
    "exec_mode"         : "fork_mode",
    "env":
    {
      "NODE_ENV"        : "production",
      "RPC_HOST"        : "localhost",
      "RPC_PORT"        : "39421",
      "LISTENING_PORT"  : "39420",
      "INSTANCE_NAME"   : "YOUR NODE NAME",
      "CONTACT_DETAILS" : "EMAIL, WALLET, WHATEVER",
      "WS_SERVER"       : "http://45.63.4.165:3000",
      "WS_SECRET"       : "ilikesoil1.4.0",
      "VERBOSITY"       : 2
    }
  }
]

Double-click "init.bat"

Double-click "start.bat" to register yourself to the node.

Double-click "stop.bat" to deregister yourself to the node.