Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.61 KB

README.md

File metadata and controls

32 lines (19 loc) · 1.61 KB

Forum application built with Pages Functions, Workers KV and Durable Objects

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.

Screen Recording 2022-08-02 at 01 43 51

Set up

To run this locally, ensure you have Wrangler version >=16.7.0 then run

npm install && npm run start

React Component structure.

The componets can be found in src/components. The image below shows a breakd own of how the components are used

Screenshot 2022-08-01 at 15 44 48

Pages Functions

Screenshot 2022-08-01 at 10 43 09

All Pages Functions are under functions/api folder. The React components are in the src/components.

Added resources