Just-Web / Player-Connect-App

Player-Connect is a place for gamers to meet up and find people to play games with.
0 stars 0 forks source link

User rating #9

Open cuibaps1 opened 5 years ago

cuibaps1 commented 5 years ago

As a software developer, I want to implement user rating, so that I can rate and view the ratings from the other users.

raomidi commented 5 years ago

@cuibaps1 will add a 2D array or list to the user object in the database which stores 2 things about each review:

  1. username of the reviewer
  2. the review value (out of 5 stars) e.g. {sku11Fighter325, 4} Then the average rating can be calculated as: sum of all reviews / number of reviews

@raomidi will create an input on the user profile page which allows people to submit reviews for users Three checks need to be created:

  1. The reviewer is signed in
  2. The reviewer is not reviewing themselves
  3. The reviewer has not reviewed this user yet