An advanced explorer based on node-js for the Wagerr block chain. Components dockerized for easy installation.
-
Access your VPS or Dedicated Server that runs Ubuntu 18.04 (recommended)
-
Install Docker, NPM, GIT and NODE
apt install docker npm nodejs git
- Clone the wagerr-explorer repo
git clone https://github.com/wagerr/wagerr-explorer
- Change to the wagerr-explorer directory
cd wagerr-explorer
- Create the environment setup file
nano .env
- 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
- Edit the configuration file
nano config.js
- 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: '',
},
};
- install npm modules
npm install
- 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.
- Start docker build process
docker-compose build
- Start the rpcnode docker and allow to fully sync
docker-compose up -d rpcnode (wait for full sync)
- Start the mongo docker
docker-compose up -d mongo
- Start the explorer docker
docker-compose up -d
- Setup nginx with nginx.conf
Progress
-Api integration explorer/overview
-Api integration explorer/movement
-Api integration explorer/masternode