Bluesparx / raga

A comprehensive mental health platform built with the MERN stack, enabling users to track mood and sleep, participate in a supportive community, and enjoy a built-in joke generator to boost their mood.
https://zen-zone-raga.vercel.app
19 stars 36 forks source link

Basic Comment Feature in Community section #55

Open Riddhi050803 opened 1 month ago

Riddhi050803 commented 1 month 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 1 month 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 1 month ago

\assign

Bluesparx commented 1 month 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?