Bluesparx / raga

Mental Health Cloud
https://zen-zone-raga.vercel.app
13 stars 24 forks source link

Basic Comment Feature in Community section #55

Open Riddhi050803 opened 18 hours ago

Riddhi050803 commented 18 hours ago

We need to implement a basic comment feature for our blog section. This requires both front-end and backend development.

Requirements: Frontend:

Add a simple comment input box below each blog post, similar to social media apps, where users can type their comments and submit it directly. Display comments in a list format below the input box, showing the most recent comments first. Basic validation (e.g., no empty comments). No need for advanced features like replies, likes, or upvotes. Backend:

Create an API to handle basic comment submissions. Store comments in the database with fields like comment text, timestamp, and author (if applicable). API routes for fetching and posting comments.

Require developers for this task.

SanidhyaSharma28 commented 18 hours ago

can you explain a little bit like where do you want those blogs to be published etc. and i am up for the task and can do it easily please assign

Athaxv commented 10 hours ago

\assign

Bluesparx commented 9 minutes ago

Hey @SanidhyaSharma28 we're storing blog posts in MongoDB, and they're relatively small (similar to the size of Twitter posts). We’re thinking of using a separate schema for the comments. We would display the comments in some form of modal which users can click to view or add. Could you help with setting up both the backend and frontend for the comments?