User Auth - Dashboard and Notification-4
User Auth - Dashboard and Notification-4
Authentication Workflow
2. Forgot Password:
3. Token Management:
1. Edit Profile:
Users can update details: Name, Country, Profile Pic, Bio, Mobile, etc.
2. Activity Management:
3. Lists:
4. Earnings:
1. User Management:
2. Content Moderation:
Add / Upload / Update / Delete Product data via API / CSV / Scrapper
3. Earnings Overview:
4. Reporting:
Generate and see Graphical / Tabular / Stastical reports on user activities, earnings (Received, Pending
and Paid to user and reports of our earning also from Flipkart, Amazon and other sites), and referral
performance, clickthrough (store and date wise where traffic goes maximum and where minimum).
5. Store Performance
Diagram Overview
User → Frontend (Next.js) → Backend (NestJS) → MongoDB (User, Lists, Activity Collections)
Event Trigger (e.g., Price Change) → Backend → Notification Service (Email/SMS) → User
Notification Types
Price Alerts: Notify users of price drops on products they track.
System Notifications: Password changes, profile updates, or login from a new device.
Notification ID
User ID (recipient)
Status (read/unread)
Timestamp
Use cron jobs for scheduled notifications (e.g., "Daily cashback summary").
3. Frontend UI/UX:
Allow a "View All Notifications" page with filters (e.g., unread, date range, type).
1. Push Notifications:
Use Firebase Cloud Messaging (FCM) or similar for push notifications to mobile/web.
Send important updates via email using services like SendGrid or Postmark.
3. In-App Notifications:
4. Backend Implementation
Use event-driven architecture (e.g., RabbitMQ, Kafka, or hooks) to trigger notifications automatically
based on specific actions (e.g., price drop or referral signup).
3. Notification Scheduler:
5. Frontend Integration
1. Notification Dropdown:
2. Real-Time Updates:
Allow users to customize which notifications they want to receive (e.g., enable/disable email or push
alerts).
Simulate different events (price drops, referrals, etc.) to verify notification flow.
1. Backend:
2. Push Notifications:
3. Email Service:
4. Real-Time:
WebSocket libraries.