goBlockchainDataAnalysis/README.md
README.mdRaw
1# goBlockchainDataAnalysis
2blockchain data analysis, written in Go
3
4#### Not finished - ToDo list
5To Do list in DevelopmentNotes.md https://github.com/arnaucode/goBlockchainDataAnalysis/blob/master/DevelopmentNotes.md
6
7## Instructions
8
9### Install
101. Nodejs & NPM https://nodejs.org/ --> to get npm packages for the web
112. MongoDB https://www.mongodb.com/
123. Faircoin wallet https://download.faircoin.world/, or the Cryptocurrency desired wallet
134. goBlockchainDataAnalysis https://github.com/arnaucode/goBlockchainDataAnalysis
14
15### Configure
16- Wallet /home/user/.faircoin2/faircoin.conf:
17```
18rpcuser=faircoinrpc
19rpcpassword=password
20rpcport=3021
21rpcworkqueue=2000
22server=1
23rpcbind=127.0.0.1
24rpcallowip=127.0.0.1
25```
26
27- goBlockchainDataAnalysis/config.json:
28```json
29{
30 "user": "faircoinrpc",
31 "pass": "password",
32 "host": "127.0.0.1",
33 "port": "3021",
34 "genesisTx": "7c27ade2c28e67ed3077f8f77b8ea6d36d4f5eba04c099be3c9faa9a4a04c046",
35 "genesisBlock": "beed44fa5e96150d95d56ebd5d2625781825a9407a5215dd7eda723373a0a1d7",
36 "startFromBlock": 0,
37 "server": {
38 "serverIP": "127.0.0.1",
39 "serverPort": "3014",
40 "webServerPort": "8080",
41 "allowedIPs": [
42 "127.0.0.1"
43 ],
44 "blockedIPs": []
45 },
46 "mongodb": {
47 "ip": "127.0.0.1",
48 "database": "goBlockchainDataAnalysis"
49 }
50}
51```
52
53### Run
54
551. Start MongoDB
56```
57sudo service mongod start
58```
59
602. Start wallet
61```
62./faircoind -txindex -reindex-chainstate
63```
64Wait until the entire blockchain is downloaded.
65
663. Run explorer, to fill the database
67```
68./goBlockchainDataAnalysis -explore
69```
70
71 3.1. The next runs, once the database have data and just need to add last blocks added in the blockchain, can just run:
72```
73./goBlockchainDataAnalysis -continue
74```
75
76 3.2. If don't want to fill the database, can just run:
77```
78./goBlockchainDataAnalysis
79```
80
81Webapp will run on 127.0.0.1:8080
82
834. ADDITIONAL - Run the webserver, directly from the /web directory
84This can be useful if need to deploy the API server in one machine and the webserver in other.
85In the /web directory:
86```
87npm start
88```
89Webapp will run on 127.0.0.1:8080
90
91
92
93### Additional info
94- Backend
95 - Go lang https://golang.org/
96 - MongoDB https://www.mongodb.com/
97- Frontend
98 - AngularJS https://angularjs.org/
99 - Angular-Bootstrap-Material https://tilwinjoy.github.io/angular-bootstrap-material
100
101
102### Some screenshots
103Some screenshots can be old, and can contain errors.
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118