swarooppatilx / scruter

Scruter is a local classifieds and community site designed to bring people together for buying, selling, and exchanging goods and services.
https://scruter.vercel.app
GNU General Public License v3.0
28 stars 135 forks source link

Bookmark Functionality for Listings #477

Closed ShivanshPlays closed 2 weeks ago

ShivanshPlays commented 2 weeks ago

Bookmark Functionality for Listings

Description:

We are adding a bookmark feature to the website where users can bookmark or save specific listings. These saved listings will then be displayed on the user's profile page under a dedicated "Bookmarks" section.

Approach:

This functionality will be implemented in two stages:

  1. Backend (PR 1):

    • Set up the necessary database schema and API endpoints to store and retrieve bookmarked listings.
    • Implement logic to handle saving and removing bookmarks for users.
  2. Frontend (PR 2):

    • Implement the bookmark button on the listings page.
    • Create the "Bookmarks" page in the user's profile to display the saved listings.
    • Ensure users can interact with their bookmarked listings (e.g., remove or view details).

Note for PA:

This issue will be split into two PRs:

The backend will handle the API and database integration, while the frontend will focus on the user interface and interaction logic for the bookmark feature.