Code Monkey home page Code Monkey logo

wagerr-explorer's Introduction

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

Discord follow on Twitter

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

wagerr-explorer's People

Contributors

frndxyz avatar itdream-dev avatar zeroedge83 avatar

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.