Megan-Ralph / tumblr-ish

A tumblr-like app made for fun!
0 stars 0 forks source link

Ability to like content #2

Open drobny opened 1 year ago

drobny commented 1 year ago

Would be nice to have the ability to 'like' content - this would

  1. Update the like count in the DB
  2. Update the like count on the front end (thumbsup or similar)
  3. Not do a full HTTP page reload
Megan-Ralph commented 1 year ago

Hi again Rob!

I have implemented the ability to like content in this commit.

I have used an Ajax request to update the like count dynamically, in the same way I implemented comments on posts. a like can belong to an article, an event or a comment.

If I had more time I would definitely like to make the like button a lot prettier, add the likes to the user's activity feed and add some better specs for this!