An open API service indexing awesome lists of open source software.

https://github.com/megaemce/dynamic-11th

View count and like button in 11ty
https://github.com/megaemce/dynamic-11th

11ty 11ty-template express vercel-serverless-functions

Last synced: 6 months ago
JSON representation

View count and like button in 11ty

Awesome Lists containing this project

README

          


Eleventy + Vercel + Express = 🔢 + 👍

[A quest](https://annoyscript.vercel.app/posts/Adding%20view%20count%20and%20like%20button%20to%2011ty/) to make static 11ty blog less static, by adding like button and view count, using vercel and express.

````mermaid
flowchart LR
subgraph 11ty [11ty]
C(postTitle) --- D[Views.njs] & E[Likes.njs]
end
subgraph node [node]
F([express])
end
subgraph Vercel [Vercel KV]
subgraph Key [Key]
G(postTitle)
end
subgraph Value [Value]
H[likes] & I[views]
end
end
Key --- Value
F <-.-> Key

D <-. API/JSON .-> F
E <-. API/JSON .-> F
````