项目作者: CodeChain-io

项目描述 :
Block Explorer for CodeChain
高级语言: TypeScript
项目地址: git://github.com/CodeChain-io/codechain-explorer.git
创建时间: 2018-05-03T04:49:48Z
项目社区:https://github.com/CodeChain-io/codechain-explorer

开源协议:Apache License 2.0

下载


CodeChain Explorer Gitter Build Status

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

  1. # git clone git@github.com:kodebox-io/codechain-explorer.git
  2. # cd codechain-explorer

Install package

Use yarn package manager to install packages

  1. # yarn install

Before starting

Dependency

Running for development

-The explorer will run at http://localhost:3000

  1. # yarn run start
  2. // You can chage the port of test server and the host URL with environment variables.
  3. # PORT=3000 REACT_APP_SERVER_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

  1. # yarn run build
  • You can change the server host using an environment variable
  1. # REACT_APP_SERVER_HOST=http://127.0.0.1:8080 yarn run build

Custom Configuration

Build

Default Options Description
REACT_APP_SERVER_HOST http://127.0.0.1:9001
REACT_APP_URL This is used for the open graph
REACT_APP_HEADER_TITLE
REACT_APP_HEADER_SHORT_TITLE
REACT_APP_OG_TITLE
REACT_APP_OG_DESC
REACT_APP_OG_IMAGE
REACT_APP_GOOGLE_ANALYTICS_ID
PUBLIC_URL