Skip to content

borispovod/bcexplorer

Repository files navigation

Crypti Blockchain Explorer

Crypti blockchain explorer version 0.3. Works with Crypti wallet API. Uses Redis for caching data and Freegeoip for IP geo-location.

Required Components

Installation

To install run:

npm install
bower install

Freegeoip

Freegeoip is used by the Network Monitor for IP address geo-location.

Installation is very simple. Download and unpack the latest release from: https://github.com/fiorix/freegeoip/releases

Then start the server in the background, using the following command:

./freegeoip > /dev/null 2>&1 &

Configuration

config.json file contains configuation settings.

Example:

{
    "configuration" : {
        "development": {
            "host": "0.0.0.0",
            "port": 8040
        },
        "production": {
            "host": "0.0.0.0",
            "port": 80
        },
        "crypti" : {
            "host" : "127.0.0.1",
            "port" : 6040
        },
        "freegeoip" : {
            "host" : "127.0.0.1",
            "port" : 8080
        },
        "redis" : {
            "host" : "127.0.0.1",
            "port" : 6379,
            "password" : ""
        },
        "updateTopAccountsInterval" : 10800000,
        "cacheTTL" : 20,
        "fixedPoint" : 100000000,
        "enableExchange" : true,
        "updateExchangeInterval" : 900000,
        "btcusdExchange" : "bitfinex",
        "xcrbtcExchange" : "poloniex"
    }
}
  • updateTopAccountsInterval - time to update top accounts in interval.
  • cacheTTL - time to live cache in redis.
  • fixedPoint - fixed point number of Crypti (10^8).
  • enableExchange - enable or disable exchange currency courses.
  • updateExchangeInterval - time to update exchange currency courses.
  • btcusdExchange - default is bitfinex, alternatives are: bitstamp & btce.
  • xcrbtcExchange - default is poloniex, alternatives are: bter & cryptsy.

Build

Frontend must be built with grunt:

grunt compile

If you want to work with frontend and see updates in realtime run:

grunt

It will update css/js files as changes are made.

Launch

Development:

node app.js

Open: http://localhost:8080

Production:

NODE_ENV=production node app.js

Open: http://localhost

Ports for both mode can be found in config.json

Top Accounts

To enable Top Accounts functionality, start your crypti node (not the explorer) using the following command:

TOP=true node app.js