BitByte-TPC / alumni

Alumni Portal for IIITDM Jabalpur
https://alumni.iiitdmj.ac.in
MIT License
15 stars 54 forks source link

[FEATURE] Upvote feature for blogs #173

Open SamakshAgarwal1112 opened 1 month ago

SamakshAgarwal1112 commented 1 month ago

Is your feature request related to a problem? Please describe.

The blogs model has a field 'upvotes' but currently it is not being used anywhere. Now that detailed blog pages are ready at '/blogs/' and general page at '/blogs' is almost done, we need to add an upvotes button for blogs.

Describe the solution you'd like!

Since currently we only have a detailed blog page for every blog at /blogs/<id>, so let's start the solution from there and when the basic setup is done, we can easily do it for blogs on /blogs page as well. The solution might include :

Describe alternatives you've considered

Feel free to suggest!

Developer Help

Feel free to ask for help incase of any doubt.

ritankarsaha commented 1 month ago

@SamakshAgarwal1112 I would like to work on this issue. The approach would include updating the blog model to incorporate the upvote button and then rendering it in the respective blog template file to show the button.

SamakshAgarwal1112 commented 1 month ago

@ritankarsaha Go ahead