Skip to content

wagerr/wagerr-explorer

Repository files navigation

Wagerr Logo

Wagerr Block Explorer

An advanced explorer based on node-js for the Wagerr block chain. Components dockerized for easy installation.

Installation Instructions (as Root)

  1. Access your VPS or Dedicated Server that runs Ubuntu 18.04 (recommended)

  2. Install Docker, NPM, GIT and NODE

  apt install docker npm nodejs git
  1. Clone the wagerr-explorer repo
  git clone https://github.com/wagerr/wagerr-explorer
  1. Change to the wagerr-explorer directory
  cd wagerr-explorer
  1. Create the environment setup file
  nano .env
  1. Paste the following template and adjust variables
  MONGODB_HOST=mongo
  MONGODB_PORT=27017
  MONGO_INITDB_ROOT_USERNAME=REPLACE
  MONGO_INITDB_ROOT_PASSWORD=REPLACE
  MONGO_INITDB_DATABASE=admin
  MONGODB_USERNAME=REPLACE
  MONGODB_PASSWORD=REPLACE
  MONGODB_DATABASE=REPLACE
  SERVER_API_HOST=https://explorer.wagerr.com
  SERVER_API_PORT=REPLACE
  REDIS_HOST=redis
  RPC_BIND=rpcnode
  RPC_USER=REPLACE
  RPC_PASS=REPLACE
  RPC_PORT=55003
  COIN_TESTNET='MainNet'
  ORACLE_PAYOUT_ADDRESS='"SNCNYcDyXPCLHpG9AyyhnPcLNpxCpGZ2X6","WRBs8QD22urVNeGGYeAMP765ncxtUA1Rv2"'
  DEV_PAYOUT_ADDRESS='"Shqrs3mz3i65BiTEKPgnxoqJqMw5b726m5","Wm5om9hBJTyKqv5FkMSfZ2FDMeGp12fkTe"'
  LOTTO_PAYOUT_ADDRESS=Weqz3PFBq3SniYF5HS8kuj72q9FABKzDrP
  API_SERVER=https://explorer.wagerr.com
  1. Edit the configuration file
  nano config.js
  1. Use the following template and adjust variables
  const config = {
    api: {
      host: 'https://explorer.wagerr.com',
      port: 'REPLACE',
      prefix: '/api',
      timeout: '30s'
    },
    coinMarketCap: {
      tickerId: '1779'
    },
    db: {
      host: 'mongo',
      port: '27017',
      name: 'REPLACE',
      user: 'REPLACE',
      pass: 'REPLACE'
    },
    freegeoip: {
      api: 'https://extreme-ip-lookup.com/json/'
    },
    faucet:{
      wait_time: 1440,
      percent: 0.02,
      limit: 500
    },
    rpc: {
      host: 'REPLACE',
      port: '55003',
      user: 'REPLACE',
      pass: 'REPLACE',
      timeout: 8000, // 8 seconds
    },
    coin:{
      testnet: 'MainNet' || 'MainNet',
      // testnet address, replace with mainnet if needed, oracle/dev address changed after 1501000, index [0] should be new one.
      oracle_payout_address: ['SNCNYcDyXPCLHpG9AyyhnPcLNpxCpGZ2X6','WRBs8QD22urVNeGGYeAMP765ncxtUA1Rv2'], 
      dev_payout_address: ['Shqrs3mz3i65BiTEKPgnxoqJqMw5b726m5','Wm5om9hBJTyKqv5FkMSfZ2FDMeGp12fkTe'], 
    },
    redis:{
      host: 'redis' || 'localhost',
    },
    crons: {
      start: '',
    },
  };
  1. install npm modules
  npm install
  1. copy wagerr daemon in 'wagerr' directory. docker script directly bridging it.
  put  test_wagerr,  wagerr-cli,  wagerrd, wagerr-qt,  wagerr-tx build in 'wagerr' folder.
  1. Start docker build process
  docker-compose build
  1. Start the rpcnode docker and allow to fully sync
  docker-compose up -d rpcnode (wait for full sync)
  1. Start the mongo docker
  docker-compose up -d mongo
  1. Start the explorer docker
docker-compose up -d
  1. Setup nginx with nginx.conf

Discord follow on Twitter

Progress
-Api integration explorer/overview
-Api integration explorer/movement
-Api integration explorer/masternode

Releases

No releases published

Packages

No packages published

Languages