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