https://github.com/aelfproject/aelf-block-explorer
It is a Block Explorer and Analytics Platform for AElf.
https://github.com/aelfproject/aelf-block-explorer
Last synced: 9 months ago
JSON representation
It is a Block Explorer and Analytics Platform for AElf.
- Host: GitHub
- URL: https://github.com/aelfproject/aelf-block-explorer
- Owner: AElfProject
- Created: 2018-09-19T06:40:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-13T10:13:25.000Z (about 2 years ago)
- Last Synced: 2024-05-14T02:36:36.079Z (about 2 years ago)
- Language: JavaScript
- Size: 15.9 MB
- Stars: 8
- Watchers: 12
- Forks: 13
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
````
# AELF Block Explorer
## Quick Start
### Install node modules Dependencies
```shell script
# install dependencies
$ yarn
````
### Dependent projects
- Firstly, start up projects listed below
- [AElf Chain](https://github.com/AElfProject/AElf) or use a running AElf chain node
- [aelf-block-api](https://github.com/AElfProject/aelf-block-api)
- [aelf-web-proxy](https://github.com/AElfProject/aelf-web-proxy)
### Local Development
1. Modify the proxy config in `build/proxy.json`
- there are several proxy configs, if you have started related projects such as `aelf-block-api` in local environment, this file doesn't need any changes
2. Change the chain node URL in script such as `yarn beforeDev -- --CHAIN_ENDPOINT https://aelf-test-node.aelf.io`
3. Run the npm script `start`
```shell script
yarn dev
```
this script will start a `webpack-dev-server` and listen on port `3000`, open `http:0.0.0.0:3000` in your browser manually.
### Production
For production, change the chain node URL in `config/config.js` and run:
```shell script
yarn beforeBuild -- --CHAIN_ENDPOINT https://aelf-test-node.aelf.io
yarn build
```
## api rules
- `/api/*` => `scan server`; [aelf-block-api](https://github.com/AElfProject/aelf-block-api)
- `/chain/*` => `aelf chain` [AElf Chain](https://github.com/AElfProject/AElf)