Nishitbaria / Dev-Exchange

A community-driven platform for asking and answering programming questions. Get help, share knowledge, and collaborate with developers from around the world. Explore topics in web development, mobile app development, algorithms, data structures, and more.
https://devexchanges.vercel.app/
MIT License
11 stars 24 forks source link

[Feature] Add "Follow" and "Unfollow" Feature for Users #54

Closed Sahilll15 closed 2 weeks ago

Sahilll15 commented 1 month ago

Description

Title

Add "Follow" and "Unfollow" Feature for Users

Description

Description:

Implement a feature that allows users to follow and unfollow other users on the platform. This feature will enable users to stay updated with the activity of developers they are interested in.

Objectives:

Requirements:

  1. Database Changes:

    • Create a new table to manage follow relationships (e.g., follows with columns follower_id, followed_id, created_at).
  2. Backend:

    • Create API endpoints to handle follow and unfollow actions:
      • POST /follow to follow a user.
      • DELETE /unfollow to unfollow a user.
    • Ensure proper authentication and authorization checks.
    • Update user profile endpoints to include follower and following counts.
  3. Frontend:

    • Add "Follow" and "Unfollow" buttons on user profiles.
    • Update the user interface to display followers and following lists.
    • Display follower count and following count on the user's profile page.
    • Show notifications for new content from followed users.

This feature aims to enhance user engagement and interaction within the community, making it easier for developers to connect and collaborate.

Screenshots

No response

Checklist

github-actions[bot] commented 1 month ago

52, #37, #36, #35 is already opened by you

As per contributing guidelines, you can only work on 1 issue at a time.

github-actions[bot] commented 1 month ago

Hello Sahilll15! Thank you for raising this issue! 😊 Your contribution is valuable to us! 😊

Please make sure to follow our Contributing Guidelines. 💪🏻

Please only work on an issue if you're assigned; otherwise, the PR will be automatically closed. Our review team will carefully assess the issue and reach out to you soon! 😇 We appreciate your patience!