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
/api/!${rpc}/*
=>scan server
; aelf-block-api/chain/*
=>aelf chain
AElf Chain
It means you need run aelf-block-api & AElf at first.
cp explore.https.conf explore.conf
Change 'location /chain' in Nignx to your own RPC URL.
cp config/config.example.js config/config.js
set your own rpc url.
just run npm start
docker build exec sh ./build-image.sh
├── 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
- https://github.com/mobxjs/mobx-state-tree it's a state manage lib, using the store to support realtime fetching data.
- https://github.com/insin/nwb it's a toolkit for React build. it's configuration of the nwb.config.js.
- https://github.com/infinitered/apisauce it support Axios + standardized errors + request/response transforms.