CodeChain explorer is a simple, easy to use, open-source visualization tool for viewing activity on the underlying blockchain network.
The following are the software dependencies required to install and run CodeChain-explorer:
- CodeChain version of commit 6ce9bf8340906bde1142a9dcd344f37b7aa6f879
- Nodejs v10.4.1
- ElasticSearch v6.2.4
Download CodeChain-explorer code from the GitHub repository
# git clone [email protected]:kodebox-io/codechain-explorer.git
# cd codechain-explorer
Use yarn package manager to install packages
# yarn install
- Get CodeChain ready with CodeChain RPC server
- Get ElasticSearch database ready for indexing block data
- Worker
- Data synchronizing tool between CodeChain and ElasticSearch
- Server
- Restful API server for getting data from DB
- Client
- Client developed by react framework
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
Run CodeChain-explorer server
- You can change ElasticSearch and CodeChain host URL in "/server/config/default.json"
# yarn run start-server
Run CodeChain-explorer client in development mode
# yarn run start-client
# yarn run start
Build CodeChain-explorer with following script. You can get optimized, uglified build code. It will locate at "/build" directory
# yarn run build