Block Explorer for CodeChain
CodeChain Explorer

CodeChain explorer is a simple, easy to use, open-source visualization tool for viewing activity on the underlying blockchain network.
Table of Contents
Install
Download
Download CodeChain-explorer's code from the GitHub repository
# git clone git@github.com:kodebox-io/codechain-explorer.git
cd codechain-explorer
Install package
Use yarn package manager to install packages
# yarn install
Before starting
Dependency
- Get CodeChain-indexer ready for indexing block data and running the API server
Running for development
-The explorer will run at http://localhost:3000
# yarn run start
// You can chage the port of test server and the host URL with environment variables.
PORT=3000 REACTAPPSERVER_HOST=http://127.0.0.1:8081 yarn run start
Running for production
Build
Build CodeChain-explorer with the following script. You can get optimized and uglified build code. It will be located in the "/build" directory
# yarn run build
- You can change the server host using an environment variable
# REACTAPPSERVER_HOST=http://127.0.0.1:8080 yarn run build
Custom Configuration
Build
| | Default | Options | Description | | ----------------------------- | --------------------- | ------- | ------------------------------- | | REACTAPPSERVER_HOST | http://127.0.0.1:9001 | | | | REACTAPPURL | | | This is used for the open graph | | REACTAPPHEADER_TITLE | | | | | REACTAPPHEADERSHORTTITLE | | | | | REACTAPPOG_TITLE | | | | | REACTAPPOG_DESC | | | | | REACTAPPOG_IMAGE | | | | | REACTAPPGOOGLEANALYTICSID | | | | | PUBLIC_URL | | | |