Skip to content

itsukis/codechain-explorer

 
 

Repository files navigation

CodeChain Explorer Gitter

CodeChain explorer is a simple, easy to use, open-source visualization tool for viewing activity on the underlying blockchain network.

Table of Contents

Install

Requirements

The following are the software dependencies required to install and run CodeChain-explorer:

Download

Download CodeChain-explorer code from the GitHub repository

# git clone [email protected]:kodebox-io/codechain-explorer.git
# cd codechain-explorer

Install package

Use yarn package manager to install packages

# yarn install

Running for development

Before start

  • Get CodeChain ready with CodeChain RPC server
  • Get ElasticSearch database ready for indexing block data

Running order

  1. Worker
  • Data synchronizing tool between CodeChain and ElasticSearch
  1. Server
  • Restful API server for getting data from DB
  1. Client
  • Client developed by react framework

Worker

Run CodeChain-worker for indexing data to ElasticSearch

  • You can change ElasticSearch and CodeChain host URL in "/worker/config/default.json"
# yarn run start-worker

Server

Run CodeChain-explorer server

  • You can change ElasticSearch and CodeChain host URL in "/server/config/default.json"
# yarn run start-server

Client

Run CodeChain-explorer client in development mode

# yarn run start-client
  • You can change Server host using environment variable
# REACT_APP_SERVER_HOST=127.0.0.1:8080 yarn run start-client

Running worker, server, client at once

# yarn run start

Running for production

Build

Build CodeChain-explorer with following script. You can get optimized, uglified build code. It will locate at "/build" directory

# yarn run build
  • You can change Server host using environment variable
# REACT_APP_SERVER_HOST=127.0.0.1:8080 yarn run build

About

Block Explorer for CodeChain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 79.3%
  • JavaScript 15.9%
  • CSS 4.4%
  • HTML 0.4%