You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.1 KiB

7 years ago
  1. # goBlockchainDataAnalysis
  2. blockchain data analysis, written in Go
  3. ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/goBlockchainDataAnalysis01.png "goBlockchainDataAnalysis")
  4. ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/goBlockchainDataAnalysis02.png "goBlockchainDataAnalysis")
  5. ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/goBlockchainDataAnalysis05.png "goBlockchainDataAnalysis")
  6. ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/goBlockchainDataAnalysis04.png "goBlockchainDataAnalysis")
  7. ### Install
  8. 1. Nodejs & NPM https://nodejs.org/
  9. 2. MongoDB https://www.mongodb.com/
  10. 3. Faircoin wallet https://download.faircoin.world/
  11. 4. goBlockchainDataAnalysis https://github.com/arnaucode/goBlockchainDataAnalysis
  12. ### Configure
  13. - Wallet /home/user/.faircoin2/faircoin.conf:
  14. ```
  15. rpcuser=usernamerpc
  16. rpcpassword=password
  17. rpcport=3021
  18. rpcworkqueue=2000
  19. server=1
  20. rpcbind=127.0.0.1
  21. rpcallowip=127.0.0.1
  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. ### Run
  35. 1. Start MongoDB
  36. ```
  37. sudo service mongod start
  38. ```
  39. 2. Start wallet
  40. ```
  41. ./faircoind -txindex -reindex-chainstate
  42. ```
  43. 3. Run explorer, to fill the database
  44. ```
  45. ./goBlockchainDataAnalysis -explore
  46. ```
  47. 3.1. The next runs, once the database have data, can just run:
  48. ```
  49. ./goBlockchainDataAnalysis
  50. ```
  51. 4. Run the webserver, in the /web directory
  52. ```
  53. npm start
  54. ```
  55. Webapp will run on 127.0.0.1:8080
  56. ### Additional info
  57. - Backend
  58. - Go lang https://golang.org/
  59. - MongoDB https://www.mongodb.com/
  60. - Frontend
  61. - AngularJS https://angularjs.org/
  62. - Angular-Bootstrap-Material https://tilwinjoy.github.io/angular-bootstrap-material