Step 1 to building a Proof of Concept for User Authority

image.png

UserAuthority concept really has the potential to change Steem for the best, I believe it does! Introduced by @scipio in this post and that one, the UserAuthority is a new metrics working in a Google-like manner and determined by the UserAuthorities of the user's followers.

I won't get into too much details regarding why it is important to implement that, the two articles linked above will know how to convince you of that, I am sure. Rather, I will share the advancement of the project.

Step 1: creation of the followDB database collection



In order to be able to iterate and find the UserAuthority for 457,964 Steem accounts, we need to store the needed information in a local database. In the code submitted in this Pull Request , I read all the Accounts stored in the SteemData database, keep only the information needed, and store it in our local database collection followDB. We are storing the following information

  • id of user
  • name of user
  • followers an array of the names of accounts following the user
  • Storing the size of followers could be handy



To run this and get your own version of the followDB:

  • Go to the folder and create an empty data folder
  • Run mongodb in there
  • From node, npm install on the folder
  • From node still. node index

Next step will be to use this data to compute the UserAuthority.
Of course, we are now working on a proof of concept, so we take a shortcut using data from SteemData. On the production version, all data will be gathered from the blockchain.

Thanks @scipio for asking me to get onboard, we're going to make it real!

@stoodkev



Posted on Utopian.io - Rewarding Open Source Contributors

H2
H3
H4
3 columns
2 columns
1 column
23 Comments