As a user of the 'Deep Thoughts' platform, I want to receive and view notifications when someone follows me or likes my post, So that I can stay updated and engaged with the community.
Acceptance Criteria:
A notification is generated when a user follows me.
A notification is generated when a user likes one of my posts.
I can view all my notifications in a consolidated page.
The notification page should clearly differentiate between different types of notifications (e.g., follow vs. like).
The main navigation bar includes a tab/link to access the notifications page.
Additional Context
Consider implementing pagination if a user has a large number of notifications to ensure the page loads efficiently.
Perhaps add a timestamp to each notification to indicate when the activity occurred.
Dependencies:
The front-end navigation system is in place.
User model on the backend is set up.
Tasks
Create a Notification model in the backend with attributes: type (like, follow), timestamp, relatedUserId, etc.
Update the User model to include an array attribute called 'notifications' that will hold notification references or IDs.
Implement backend logic to create and store notifications when the triggering activities (like, follow) occur.
Add a new 'Notification' tab to the navbar on the front end.
Design and implement the notifications page on the front end to display the list of notifications.
Add frontend logic to fetch and display notifications from the backend when the user accesses the notifications page.
Notification System
As a user of the 'Deep Thoughts' platform,
I want to receive and view notifications when someone follows me or likes my post,
So that I can stay updated and engaged with the community.
Acceptance Criteria:
Additional Context
Dependencies:
Tasks