GithubHelp home page GithubHelp logo

isabella232 / explorer-5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rsksmart/explorer

0.0 0.0 0.0 6.83 MB

RSK Block Explorer

License: MIT License

Shell 0.01% JavaScript 96.59% CoffeeScript 0.95% CSS 1.31% HTML 1.14%

explorer-5's Introduction

RSK Block Explorer

Local installation

Clone the repo

git clone https://github.com/rsksmart/explorer

Download Nodejs and npm if you don't have them

Install dependencies:

npm install

Install mongodb:

MacOS: brew install mongodb

Ubuntu: sudo apt-get install -y mongodb-org

Populate the DB

This will fetch and parse the entire blockchain.

Example configuration file: /tools/config.json

Basic settings:

{
	"gethHost": "mynode.com",
    "gethPort": 4444, 
    "blocks": [ {"start": 2000, "end": "latest"}],
    "quiet": false,
    "terminateAtExistingDB": true,
    "listenOnly": false
}

blocks is a list of blocks to grab. It can be specified as a list of block numbers or an interval of block numbers. When specified as an interval, it will start at the end block and keep recording decreasing block numbers.

terminateAtExistingDB will terminate the block grabber once it gets to a block it has already stored in the DB.

quiet prints out the log of what it is doing.

listenOnly When true, the grabber will create a filter to receive the latest blocks from geth as they arrive. It will not continue to populate older block numbers.

Note: When listenOnly is set to true, the blocks option is ignored.

Note 2: terminateAtExistingDB and listenOnly are mutually exclusive. Do not use terminateAtExistingDB when in listenOnly mode.

Run:

node ./tools/grabber.js

Leave this running in the background to continuously fetch new blocks.

Stats

Tools for updating network stats are under development, but can be found in:

node ./tools/stats.js

WebApp:

export NODE_ENV="{ENV}" 
node app.js

NODE_ENV can be deveploment for dummy data or another string for real data.

explorer-5's People

Contributors

ajlopez avatar bcodesido avatar elaineo avatar emiliorizzo avatar empty2k12 avatar kimisan avatar martinmedina avatar matthewjamesr avatar ondrejsika avatar realcodywburns avatar rguiu 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.