ContriHUB / EAT_EASY

EatEasy- A mess management website , Managing Complaints Mastering Satisfaction
MIT License
0 stars 18 forks source link

Add Real-Time Comment Section and Upvote/Downvote Functionality Using Socket.io #8

Closed Aryan10 closed 1 month ago

Aryan10 commented 1 month ago

Description

This pull request implements a real-time comment section with upvote and downvote functionality using Socket.io. It includes both real-time updates for comments and vote counts (upvotes/downvotes) of both comments and complaints, ensuring instant feedback and communication for all users connected to the system.

Features:

  1. Real-Time Updates:
    Comments and votes update instantly across all connected users without requiring page reloads.

  2. Upvote/Downvote Functionality:
    Users can upvote or downvote comments, with real-time vote counts visible for each comment.

Technical Details:

Related Issue

Fixes #1 (issue)

Type of change

Motivation and Context

This change allows users to engage with the comment section in real time, providing immediate feedback through upvotes and downvotes. It also enhances user interaction by broadcasting changes instantly to all connected clients, improving the user experience.

How Has This Been Tested?

The changes were tested across multiple users connected simultaneously:

Screenshots/Demonstration:

Real-time complaint upvote/downvote

https://github.com/user-attachments/assets/4fe0df15-5a16-4849-9819-40fb9b2c8028

Real-time comment and upvote/downvote

https://github.com/user-attachments/assets/e9cd8269-3aa1-4d0d-a404-8439dea1a9d4

New comment upvote/downvote buttons

image

Checklist:

Test Configuration: