freeCodeCamp / hackathon-leaderboard

An open source hackathon leaderboard
MIT License
9 stars 12 forks source link

As an authenticated User: I can cast my vote(s) for the best project #38

Open Bouncey opened 6 years ago

Bouncey commented 6 years ago

Condition required for access to voting

Voting rules:

Voting API:

Bouncey commented 6 years ago

My thinking is, we have a model relationship of Team -----hasOne----> Vote

Vote will have a schema of

{
  canVote: Boolean,
  votesFor: [String], // most probably team._id of the teams voted for
  recievedVotes: [String] // team._id's of teams that voted for this team
}
QuincyLarson commented 6 years ago

Since we had fewer than 100 online hackathon teams, we think the judges can personally review these, so we don't need to create a voting system. We can do this later for future hackathons though. Closing this for now.

raisedadead commented 6 years ago

Reopening just so that this not forgotten.