🔍 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
🔍 Problem Statement
Description
Implement a backend notification system to handle important group and contract-related events, ensuring real-time delivery and persistent storage.
Events
Requirements
id,userId,eventType,message,timestamp,readTasks
Acceptance Criteria
📈 Expected Impact
High — Would significantly improve user experience