Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a recipe/:slug like tracker #19

Open
AJGeel opened this issue Nov 17, 2023 · 0 comments
Open

Add a recipe/:slug like tracker #19

AJGeel opened this issue Nov 17, 2023 · 0 comments
Labels
✨ Enhancement New feature or request

Comments

@AJGeel
Copy link
Owner

AJGeel commented Nov 17, 2023

What

  • Add some serverless database
    • Include a table with | /recipe/:slug | likes | columns
    • Retrieve num likes on recipe load. (Cached ~x minutes).
      • If it does not exist, create a row in the table, and initialize the likes as 1.
    • Display said stat on /recipe/:slug page.
      • Add button with server action to add likes.
      • Have some way of preventing one user to endlessly like a single recipe.
@AJGeel AJGeel added the ✨ Enhancement New feature or request label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant