Skip to content

It is a Block Explorer and Analytics Platform for AElf.

License

Notifications You must be signed in to change notification settings

bikedawuwang/aelf-block-explorer

 
 

Repository files navigation

AELF Block Explorer

Quick Start

Please ensure your dependencies are ready.

If you meet some permission problem, please use 'sudo'.

bash build.sh < type|optional > < node_moduels|optinal > < nginx action | optinal>
# if you only want to use the second param, you must set the type=""
# Demos
bash build.sh dev
bash build.sh dev reinstall
bash build.sh "" reinstall
bash build.sh "" reinstall reload
bash build.sh pro reinstall reload

# bash build.sh === bash build.sh pro

Default Port: 3000

Dependencise

api rules:

  1. /api/!${rpc}/* => scan server; aelf-block-api
  2. /chain/* => aelf chain AElf Chain

It means you need run aelf-block-api & AElf at first.

nginx.conf

cp explore.https.conf explore.conf

Change 'location /chain' in Nignx to your own RPC URL.

RPC conf

cp config/config.example.js config/config.js

set your own rpc url.

Develop

just run npm start

Docker[TODO]

docker build exec sh ./build-image.sh

Project Struct

├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── build-image.sh
├── build.sh
├── dockerfile
├── explore.conf
├── nwb.config.js
├── package-lock.json
├── package.json
├── public
├── src
│   ├── App.js
│   ├── App.less
│   ├── Store.js
│   ├── assets
│   ├── components
│   ├── constants.js
│   ├── index.html
│   ├── index.js
│   ├── index.less
│   ├── pages
│   ├── routes.js
│   └── utils.js
└── tests
    └── App-test.js

Dependence libs

  1. https://github.com/mobxjs/mobx-state-tree it's a state manage lib, using the store to support realtime fetching data.
  2. https://github.com/insin/nwb it's a toolkit for React build. it's configuration of the nwb.config.js.
  3. https://github.com/infinitered/apisauce it support Axios + standardized errors + request/response transforms.

About

It is a Block Explorer and Analytics Platform for AElf.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.6%
  • CSS 14.1%
  • Other 1.3%