goBlockchainDataAnalysis/README.md
README.mdRaw
1# goBlockchainDataAnalysis
2blockchain data analysis, written in Go
3
4
5
6
7
8
9
10
11
12
13
14
15
16### Install
171. Nodejs & NPM https://nodejs.org/
182. MongoDB https://www.mongodb.com/
193. Faircoin wallet https://download.faircoin.world/
204. goBlockchainDataAnalysis https://github.com/arnaucode/goBlockchainDataAnalysis
21
22### Configure
23- Wallet /home/user/.faircoin2/faircoin.conf:
24```
25rpcuser=usernamerpc
26rpcpassword=password
27rpcport=3021
28rpcworkqueue=2000
29server=1
30rpcbind=127.0.0.1
31rpcallowip=127.0.0.1
32```
33
34- goBlockchainDataAnalysis/config.json:
35```json
36{
37 "user": "usernamerpc",
38 "pass": "password",
39 "host": "127.0.0.1",
40 "port": "3021",
41 "genesisTx": "7c27ade2c28e67ed3077f8f77b8ea6d36d4f5eba04c099be3c9faa9a4a04c046",
42 "genesisBlock": "beed44fa5e96150d95d56ebd5d2625781825a9407a5215dd7eda723373a0a1d7"
43}
44```
45
46### Run
47
481. Start MongoDB
49```
50sudo service mongod start
51```
52
532. Start wallet
54```
55./faircoind -txindex -reindex-chainstate
56```
57
583. Run explorer, to fill the database
59```
60./goBlockchainDataAnalysis -explore
61```
62
63 3.1. The next runs, once the database have data, can just run:
64```
65./goBlockchainDataAnalysis
66```
67
684. Run the webserver, in the /web directory
69```
70npm start
71```
72Webapp will run on 127.0.0.1:8080
73
74
75
76### Additional info
77- Backend
78 - Go lang https://golang.org/
79 - MongoDB https://www.mongodb.com/
80- Frontend
81 - AngularJS https://angularjs.org/
82 - Angular-Bootstrap-Material https://tilwinjoy.github.io/angular-bootstrap-material