You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#106 is missing upvote functionality. This can be done by having the ▲ be a button that sends a fetch request to /api/vote once clicked, where a table row will be created in a votes table. The votes table will have two columns, user_id and item_id. The rest is self-explanatory.
The status of this button will correlate to whether there is a match for both the logged-in user and the current item ID in the votes table.
The main feed should also sort by amount of votes, from most to least, and display each item's score.
The text was updated successfully, but these errors were encountered:
#106 is missing upvote functionality. This can be done by having the ▲ be a button that sends a fetch request to
/api/vote
once clicked, where a table row will be created in avotes
table. Thevotes
table will have two columns,user_id
anditem_id
. The rest is self-explanatory.The status of this button will correlate to whether there is a match for both the logged-in user and the current item ID in the
votes
table.The main feed should also sort by amount of votes, from most to least, and display each item's score.
The text was updated successfully, but these errors were encountered: