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.

87 lines
2.2 KiB

7 years ago
  1. # goBlockchainDataAnalysis
  2. blockchain data analysis, written in Go
  3. ### Install
  4. 1. Nodejs & NPM https://nodejs.org/ --> to serve the web, not necessary if the web files are in a webserver
  5. 2. MongoDB https://www.mongodb.com/
  6. 3. Faircoin wallet https://download.faircoin.world/, or the Cryptocurrency desired wallet
  7. 4. goBlockchainDataAnalysis https://github.com/arnaucode/goBlockchainDataAnalysis
  8. ### Configure
  9. - Wallet /home/user/.faircoin2/faircoin.conf:
  10. ```
  11. rpcuser=usernamerpc
  12. rpcpassword=password
  13. rpcport=3021
  14. rpcworkqueue=2000
  15. server=1
  16. rpcbind=127.0.0.1
  17. rpcallowip=127.0.0.1
  18. ```
  19. - goBlockchainDataAnalysis/config.json:
  20. ```json
  21. {
  22. "user": "usernamerpc",
  23. "pass": "password",
  24. "host": "127.0.0.1",
  25. "port": "3021",
  26. "genesisTx": "7c27ade2c28e67ed3077f8f77b8ea6d36d4f5eba04c099be3c9faa9a4a04c046",
  27. "genesisBlock": "beed44fa5e96150d95d56ebd5d2625781825a9407a5215dd7eda723373a0a1d7"
  28. }
  29. ```
  30. ### Run
  31. 1. Start MongoDB
  32. ```
  33. sudo service mongod start
  34. ```
  35. 2. Start wallet
  36. ```
  37. ./faircoind -txindex -reindex-chainstate
  38. ```
  39. Wait until the entire blockchain is downloaded.
  40. 3. Run explorer, to fill the database
  41. ```
  42. ./goBlockchainDataAnalysis -explore
  43. ```
  44. 3.1. The next runs, once the database have data, can just run:
  45. ```
  46. ./goBlockchainDataAnalysis
  47. ```
  48. 4. Run the webserver, in the /web directory
  49. ```
  50. npm start
  51. ```
  52. Webapp will run on 127.0.0.1:8080
  53. ### Additional info
  54. - Backend
  55. - Go lang https://golang.org/
  56. - MongoDB https://www.mongodb.com/
  57. - Frontend
  58. - AngularJS https://angularjs.org/
  59. - Angular-Bootstrap-Material https://tilwinjoy.github.io/angular-bootstrap-material
  60. ### Some screenshots
  61. ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/goBlockchainDataAnalysis05.png "goBlockchainDataAnalysis")
  62. ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/goBlockchainDataAnalysis01.png "goBlockchainDataAnalysis")
  63. ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/goBlockchainDataAnalysis02.png "goBlockchainDataAnalysis")
  64. ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/goBlockchainDataAnalysis04.png "goBlockchainDataAnalysis")