goBlockchainDataAnalysis/README.md
README.mdRaw
1# goBlockchainDataAnalysis
2blockchain data analysis, written in Go
3
4
5### Install
61. Nodejs & NPM https://nodejs.org/ --> to serve the web, not necessary if the web files are in a webserver
72. MongoDB https://www.mongodb.com/
83. Faircoin wallet https://download.faircoin.world/, or the Cryptocurrency desired wallet
94. goBlockchainDataAnalysis https://github.com/arnaucode/goBlockchainDataAnalysis
10
11### Configure
12- Wallet /home/user/.faircoin2/faircoin.conf:
13```
14rpcuser=usernamerpc
15rpcpassword=password
16rpcport=3021
17rpcworkqueue=2000
18server=1
19rpcbind=127.0.0.1
20rpcallowip=127.0.0.1
21```
22
23- goBlockchainDataAnalysis/config.json:
24```json
25{
26 "user": "usernamerpc",
27 "pass": "password",
28 "host": "127.0.0.1",
29 "port": "3021",
30 "genesisTx": "7c27ade2c28e67ed3077f8f77b8ea6d36d4f5eba04c099be3c9faa9a4a04c046",
31 "genesisBlock": "beed44fa5e96150d95d56ebd5d2625781825a9407a5215dd7eda723373a0a1d7"
32}
33```
34
35### Run
36
371. Start MongoDB
38```
39sudo service mongod start
40```
41
422. Start wallet
43```
44./faircoind -txindex -reindex-chainstate
45```
46Wait until the entire blockchain is downloaded.
47
483. Run explorer, to fill the database
49```
50./goBlockchainDataAnalysis -explore
51```
52
53 3.1. The next runs, once the database have data, can just run:
54```
55./goBlockchainDataAnalysis
56```
57
584. Run the webserver, in the /web directory
59```
60npm start
61```
62Webapp will run on 127.0.0.1:8080
63
64
65
66### Additional info
67- Backend
68 - Go lang https://golang.org/
69 - MongoDB https://www.mongodb.com/
70- Frontend
71 - AngularJS https://angularjs.org/
72 - Angular-Bootstrap-Material https://tilwinjoy.github.io/angular-bootstrap-material
73
74
75### Some screenshots
76
77
78
79
80
81
82
83
84
85
86
87