issues
search
AJGeel
/
brouwerij-geel-recipes
A Next & Tailwind CSS app for sharing beer-based recipes, written in Markdown.
https://brouwerij-geel-recipes.vercel.app/
0
stars
0
forks
source link
Add a recipe/:slug like tracker
#19
Open
AJGeel
opened
9 months ago
AJGeel
commented
9 months ago
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.
What
| /recipe/:slug | likes |
columns1
./recipe/:slug
page.