Giter VIP home page Giter VIP logo

aelf-block-explorer's Introduction

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.

aelf-block-explorer's People

Contributors

hzz780 avatar phinome avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.