Skip to content

Commit d989a72

Browse files
Da YuDa Yu
Da Yu
authored and
Da Yu
committed
update README
1 parent d727045 commit d989a72

File tree

1 file changed

+199
-30
lines changed

1 file changed

+199
-30
lines changed

README.md

+199-30
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,221 @@
1+
# Overview
12

2-
# Filscan_Lotus - LotusExplorer
3+
Filscan is a blockchain browser for Filecoin, which can be used to view Filecoin blockchain data, including querying addresses, messages information, block heights, miner information, token information, etc.
34

4-
## 运行
5-
#### 环境:
6-
golang >= v1.13
5+
# Table of Contents
6+
- [Overview](#overview)
7+
- [Table of Contents](#table-of-contents)
8+
- [Front-End](#front-end)
9+
- [Recommended Browser](#recommended-browser)
10+
- [User Guide](#user-guide)
11+
- [Comments](#comments)
12+
- [Site Map](#site-map)
13+
- [Home Page](#home-page)
14+
- [Tipset Page](#tipset-page)
15+
- [Mining Page](#mining-page)
16+
- [Token Metrics](#token-metrics)
17+
- [Peer Map](#peer-map)
18+
- [Install](#install)
19+
- [Environmental requirements](#environmental-requirements)
20+
- [Install Dependencies](#install-dependencies)
21+
- [Compiles and hot-reloads for development](#compiles-and-hot-reloads-for-development)
22+
- [API Environment Configuration](#api-environment-configuration)
23+
- [Build](#build)
24+
- [Lints and fixes files](#lints-and-fixes-files)
25+
- [Customize configuration](#customize-configuration)
26+
- [Back-End](#back-end)
27+
- [Build and Install](#build-and-install)
28+
- [Environment](#environment)
29+
- [System Require](#system-require)
30+
- [Build](#build-1)
31+
- [Configuration](#configuration)
32+
- [Run](#run)
33+
- [API Document](#api-document)
734

8-
mongo >= v4.2
35+
# Front-End
936

10-
系统环境 linux 或 mac 暂不支持windows
37+
## Recommended Browser
1138

12-
一个运行完备的lotus节点
39+
For the best experience with the Filscan, we recommend that use the latest version of a browser from this list:
1340

14-
以及编译lotus需要的其他依赖
41+
•       Microsoft Edge
1542

16-
```cassandraql
43+
•       Mozilla Firefox
44+
45+
•       Google Chrome/Chromium
46+
47+
•       Apple Safari
48+
49+
## User Guide
50+
51+
### Comments
52+
53+
**Active Miner:** the active miner is the miner that has made sector in the last 24 hours.
54+
55+
**Active Peer:** the active peer is the node that has sent messages in the last 24 hours.
56+
57+
### Site Map
58+
59+
<p align="center">
60+
<img width="100%" style="max-width:1200px" hspace="10" border="2" src="img/site-map.png">
61+
</p>
62+
63+
### Home Page
64+
65+
<p align="center">
66+
<img width="100%" style="max-width:1200px" hspace="10" border="2" src="img/home-page.png">
67+
</p>
68+
69+
You will get the latest chain status of Filecoin Blockchain, include the latest block&message table, the Tipset chain chart.
70+
71+
**Search Bar:**
72+
73+
It is convenient for users to query the blockchain data. User can query detail information about Address, Tipset Height, Block Hash, Message ID, Peer Id by search bar.
74+
75+
**Navigation Bar:**
76+
77+
It is an easy way to access the page you are interested in.
78+
79+
**Chain status:**
80+
81+
Shows the latest chain status.
82+
83+
**The latest Blocks & Messages:**
84+
85+
Shows the latest Blocks info & messages on chain.
86+
87+
**BlockChain structure chart:**
88+
89+
Shows the chain structure of the Filecoin.
90+
91+
### Tipset Page
92+
93+
<p align="center">
94+
<img width="100%" style="max-width:1200px" hspace="10" border="2" src="img/tipset-page.png">
95+
</p>
96+
97+
In this page user will see the chain struct and if click the block in the tipset, the block detail info will appear.
98+
99+
### Mining Page
100+
101+
**Active Storage Miners:**
102+
103+
The chart shows the count of active miners in different periods.
104+
105+
**Evolution of Top Miners for Miners For Proven Power:**
106+
107+
<p align="center">
108+
<img width="100%" style="max-width:1200px" hspace="10" border="2" src="img/mining-page.png">
109+
</p>
110+
111+
The chart shows the Proven power of the top miners in different time periods.
112+
113+
**Miner List**
114+
115+
<p align="center">
116+
<img width="100%" style="max-width:1200px" hspace="10" border="2" src="img/miner-list.png">
117+
</p>
118+
119+
the table shows some miner key info, some of columns can be sorted. User can choose periods to show different data.
120+
121+
### Token Metrics
122+
123+
<p align="center">
124+
<img width="100%" style="max-width:1200px" hspace="10" border="2" src="img/token-metrics.png">
125+
</p>
126+
127+
The page displays the block reward and pledged amount of FIL tokens.
128+
129+
### Peer Map
130+
131+
<p align="center">
132+
<img width="100%" style="max-width:1200px" hspace="10" border="2" src="img/peer-map.png">
133+
</p>
134+
135+
This page shows the peer’s location on the map.
136+
137+
## Install
138+
139+
### Environmental requirements
140+
141+
- required: Node.js(https://nodejs.org/en/)
142+
143+
- optional : Yarn (https://yarnpkg.com/)
144+
145+
### Install Dependencies
146+
```
147+
yarn install or npm install 
148+
```
149+
### Compiles and hot-reloads for development
150+
```
151+
yarn serve or npm run serve
152+
```
153+
### API Environment Configuration
154+
155+
By default, the profiles are in the root directory of the project. You can modify the value of **VUE_APP_BASE_URL** to change the server address.
156+
157+
**Example:**
158+
159+
If you want to change the server address, you can open the file .env.development. Then you will see the default value of **VUE_APP_BASE_URL** is "http://192.168.1.2:8700/v0/filscan", modify it according to your actual server address. Please notice that you should run "yarn serve" or "npm run serve" to apply this change.
160+
161+
### Build
162+
```
163+
yarn build:pro or npm run build:pro
164+
```
165+
### Lints and fixes files
166+
```
167+
yarn lint or npm run lint
168+
```
169+
### Customize configuration
170+
171+
See Configuration Reference(https://cli.vuejs.org/config/).
172+
173+
# Back-End
174+
175+
## Build and Install
176+
177+
### Environment
178+
179+
- golang >= v1.13
180+
- mongo >= v4.2
181+
- lotus >= v0.2.7
182+
183+
### System Require
184+
185+
- Linux or Mac OS
186+
187+
### Build
188+
```
17189
git clone (githuburl)
190+
18191
cd Backend
192+
19193
make build-lotus
20-
go build
21-
```
22-
此时应生成 filscan_lotus 可执行文件
23194
24-
#### 配置
195+
go build
196+
```
197+
### Configuration
25198

26-
打开 conf下app.conf文件
27-
```cassandraql
199+
Edit app.conf in path /conf and set the correct parameter
200+
```
28201
mongoHost = "127.0.0.1:27017"
202+
29203
mongoUser = "root"
204+
30205
mongoPass = "admin"
31-
mongoDB = "filscan"
32-
lotusGetWay="192.168.1.111:1234"
33-
```
34-
配置mongo服务,以及lotus节点IP(注意:lotus节点1234端口默认不对外开放需自行配置)
35206
36-
#### 运行
207+
mongoDB   = "filscan"
37208
38-
运行目录结构
39-
```cassandraql
40-
|-- conf
41-
|-- app.conf
42-
|-- filscan_lotus
209+
lotusGetWay="192.168.1.1:1234"
210+
```
211+
### Run
43212

213+
Make sure mongo and lotus is active, and run the filscan_lotus
44214
```
45-
运行指令
46-
```cassandraql
47215
./filscan_lotus
48-
```
216+
```
217+
The application will check lotus and mongo’s status. The application will stop if got any error from them. If application start success, it will work until sync all data down from lotus. 
49218

50-
运行启动将会检查mondo以及lotus连通性。连接失败系统将终止启动。
219+
## API Document
51220

52-
若检测成功系统将正常启动,第一启动需要同步链上数据,请耐心等待。
221+
Check document [here](Filscan_Interface_v1.0.md)

0 commit comments

Comments
 (0)