HomeKitty
HomeKitty copied to clipboard
Create voting system
We would like to add a voting system to each accessory, obviously based on emoji. It could look like the following. There are two buttons: 👍 and 👎 .
We could just create two new columns in the Accessory
table to represent the 👍 and 👎 count. The only tricky part would be to avoid people spamming. Once a user votes, we can save a cookie in the browser to note which accessory (and which emoji the user chose). In this way, if the user already voted, we don't update the count. Anyone who would like to take on this task? 😄