You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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?
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.
The text was updated successfully, but these errors were encountered: