goBlockchainDataAnalysis/README.md
README.mdRaw
1# goBlockchainDataAnalysis
2blockchain data analysis, written in Go
3
4#### Not finished - ToDo list
5- Backend
6 - Network Address generation avoiding infinite relation loops
7 - Sankey Address generation without loops
8- Frontend
9 - After Sankey visualization, go to Network Address visualization and render without Sankey dots
10
11
12### Install
131. Nodejs & NPM https://nodejs.org/ --> to serve the web, not necessary if the web files are in a webserver
142. MongoDB https://www.mongodb.com/
153. Faircoin wallet https://download.faircoin.world/, or the Cryptocurrency desired wallet
164. goBlockchainDataAnalysis https://github.com/arnaucode/goBlockchainDataAnalysis
17
18### Configure
19- Wallet /home/user/.faircoin2/faircoin.conf:
20```
21rpcuser=usernamerpc
22rpcpassword=password
23rpcport=3021
24rpcworkqueue=2000
25server=1
26rpcbind=127.0.0.1
27rpcallowip=127.0.0.1
28```
29
30- goBlockchainDataAnalysis/config.json:
31```json
32{
33 "user": "usernamerpc",
34 "pass": "password",
35 "host": "127.0.0.1",
36 "port": "3021",
37 "genesisTx": "7c27ade2c28e67ed3077f8f77b8ea6d36d4f5eba04c099be3c9faa9a4a04c046",
38 "genesisBlock": "beed44fa5e96150d95d56ebd5d2625781825a9407a5215dd7eda723373a0a1d7"
39}
40```
41
42### Run
43
441. Start MongoDB
45```
46sudo service mongod start
47```
48
492. Start wallet
50```
51./faircoind -txindex -reindex-chainstate
52```
53Wait until the entire blockchain is downloaded.
54
553. Run explorer, to fill the database
56```
57./goBlockchainDataAnalysis -explore
58```
59
60 3.1. The next runs, once the database have data, can just run:
61```
62./goBlockchainDataAnalysis
63```
64
654. Run the webserver, in the /web directory
66```
67npm start
68```
69Webapp will run on 127.0.0.1:8080
70
71
72
73### Additional info
74- Backend
75 - Go lang https://golang.org/
76 - MongoDB https://www.mongodb.com/
77- Frontend
78 - AngularJS https://angularjs.org/
79 - Angular-Bootstrap-Material https://tilwinjoy.github.io/angular-bootstrap-material
80
81
82### Some screenshots
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97