timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.56k stars 1.99k forks source link

Adding Voting widget #730

Closed iliamrv closed 11 months ago

iliamrv commented 11 months ago

Hi, I would like to propose a voting function on nextjs blog pages to understand if the info on the page was useful or not. I am just starting my journey in react js, and I propose the following way: store the information in a database. I have described my method in more detail here:

https://txt-log.com/blog/like-button-nextjs

I see a few problems:

If you can suggest a better way and implement the changes in the project, I will be glad.

Thanks.

timlrx commented 11 months ago

Hi, it's possible but definitely out of scope for this project. Everyone has their preferred way to handle authorization and their favourite backend of choice. You could consider next-auth with vercel's redis store or supabase if you want a more general purpose database and consult the relevant documentations to integrate the required functionality.