This example application showcases a forum application that allows authenticated users to leave comments, like comments and reply on other user’s comments using Pages Functions to handle server-side logic such as Authentication and posting comments to Workers KV. We will also use Workers KV for storage of our comment entries and Durable Objects to keep the count of likes consistent.
To run this locally, ensure you have Wrangler
version >=16.7.0
then run
npm install && npm run start
The componets can be found in src/components
. The image below shows a breakd
own of how the components are used
All Pages Functions are under functions/api
folder. The React components are in the src/components
.