Skip to content

[Feature]: Notification Service Backend #122

Description

@SudiptaPaul-31

🔍 Problem Statement

Description
Implement a backend notification system to handle important group and contract-related events, ensuring real-time delivery and persistent storage.

Events

  • Contract creation
  • Milestone submission
  • Escrow release
  • Dispute creation

Requirements

  • Store notifications in database with fields: id, userId, eventType, message, timestamp, read
  • Support read/unread status updates
  • Provide API endpoints to fetch notifications (with pagination and filtering)
  • Deliver notifications in real time via WebSocket or push events
  • Ensure proper error handling and logging for failed delivery attempts

Tasks

  • Define notification schema in database
  • Implement notification creation logic triggered by events
  • Build API endpoints for fetching and updating notifications
  • Integrate WebSocket/push service for real-time delivery
  • Add unit tests for notification creation, retrieval, and status updates

Acceptance Criteria

  • Notifications stored reliably in database with correct event mapping
  • Read/unread status supported and persisted
  • Notifications delivered in real time to connected clients
  • API endpoints documented for frontend integration
  • Pagination supported for large notification lists
  • Unit tests pass for backend logic and API endpoints

📈 Expected Impact

High — Would significantly improve user experience

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions