mirror of
https://github.com/arnaucube/goBlockchainDataAnalysis.git
synced 2026-02-06 19:26:41 +01:00
017aa8c73328d992175a10b281f1f254ccdd4d4e
goBlockchainDataAnalysis
blockchain data analysis, written in Go
Install
- Nodejs & NPM https://nodejs.org/
- MongoDB https://www.mongodb.com/
- Faircoin wallet https://download.faircoin.world/
- goBlockchainDataAnalysis https://github.com/arnaucode/goBlockchainDataAnalysis
Configure
- Wallet /home/user/.faircoin2/faircoin.conf:
rpcuser=usernamerpc
rpcpassword=password
rpcport=3021
rpcworkqueue=2000
server=1
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
- goBlockchainDataAnalysis/config.json:
{
"user": "usernamerpc",
"pass": "password",
"host": "127.0.0.1",
"port": "3021",
"genesisTx": "7c27ade2c28e67ed3077f8f77b8ea6d36d4f5eba04c099be3c9faa9a4a04c046",
"genesisBlock": "beed44fa5e96150d95d56ebd5d2625781825a9407a5215dd7eda723373a0a1d7"
}
Run
- Start MongoDB
sudo service mongod start
- Start wallet
./faircoind -txindex -reindex-chainstate
- Run explorer, to fill the database
./goBlockchainDataAnalysis -explore
3.1. The next runs, once the database have data, can just run:
./goBlockchainDataAnalysis
- Run the webserver, in the /web directory
npm start
Webapp will run on 127.0.0.1:8080
Additional info
- Backend
- Go lang https://golang.org/
- MongoDB https://www.mongodb.com/
- Frontend
- AngularJS https://angularjs.org/
- Angular-Bootstrap-Material https://tilwinjoy.github.io/angular-bootstrap-material
Languages
Go
37%
HTML
30.5%
JavaScript
21.2%
CSS
11.3%