Coder Social home page Coder Social logo

defi-explorer's Introduction

DeFi Blockchain Explorer

An insight-based blockchain explorer that's built for the DeFi Blockchain (defichain.io).

Start

The default setup uses docker and docker-compose to enable a single command deployment with an env file.

By default there are 3 env files in the repo:

  • .env.example
  • .env.testnet
  • .env.mainnet

One is a local example file - .env.example. The other two files target testnet.defichain.io and mainnet.defichain.io deployments. To do a local deployment:

user@host:~/src/defi-explorer$ cp .env.example .env

user@host:~/src/defi-explorer$ docker-compose up

That's it. This should launch everything required (DeFi Blockchain node, Bitcore API server, MongoDB and Insight) in their respective containers.

Please have a look at the docker-compose.yml file for other defaults and env usage.

Configurations

Environment variables

  • NETWORK [required] - mainnet/testnet
  • API_PREFIX [required] - The full path prefix to the bitcore API endpoint
  • HTTP_PORT [default: 5000] - The final web endpoint of the insight explorer
  • API_PORT [default: 3000] - The bitcore API endpoint port
  • BITCORE_NODE_FILE_LOG [default: false] - When "true" it will create a local log file using winston
  • BITCORE_NODE_SENTRY_DNS [default: false] - An api key for sentry when present logs response on sentry

Conf files

  • bitcore.${NETWORK}.config.json [required] - The bitcore config file for the given network provided by the NETWORK env.
  • defi.${NETWORK}.conf [required] - The DeFi Blockchain config that's used the node.

NOTE: Please make sure to set a proper rpc username and password in both of the above before production deployments.

  • The DeFi Blockchain node version entirely depends on the docker image used to run it, with compose.

For details on bitcore config, have a look at the Bitcore README.

Notes

Deployment shortcuts:

testnet.defichain.io:

docker-compose --env-file .env.testnet up

mainnet.defichain.io:

docker-compose --env-file .env.mainnet up

defi-explorer's People

Contributors

bechi avatar bitjson avatar braydonf avatar chjj avatar cmgustavo avatar dabura667 avatar eordano avatar gabegattis avatar gabrielbazan7 avatar gamboster avatar gasteve avatar harshitjoshi avatar illegalprime avatar isocolsky avatar jdonadio avatar justinkook avatar maraoz avatar martindale avatar matiu avatar micahriggan avatar monstrobishi avatar nitsujlangston avatar olalonde avatar pnagurny avatar prasannavl avatar rastajpa avatar ryanxcharles avatar sumit570 avatar throughnothing avatar yemel 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.