How dilasathapa/configurable-notification-system works
This is a configurable, event-driven notification product: users manage rules or submit a test event in the Angular UI; the backend evaluates enabled rules, creates per-recipient/channel notification records, dispatches delivery, and exposes history and dashboard metrics. The graph preserves rule management, event processing, email/in-app delivery, and monitoring. Backend relationships are grounded in excerpts and the SOURCE INDEX; frontend feature-to-API calls are supported by index references, while HTTP client/server integration is documented by the README. Unsampled controller and dashboard details are represented only where documented.
Main entry points: api.ts API client · event-processing.service.ts Event processor · app.routes.ts Page router · app.ts Express application
Components 22
Angular application
- Rule management
frontend/src/app/features/rules/rules.ts - Rule editor
frontend/src/app/features/rules/rule-form/rule-form.ts - Event trigger
frontend/src/app/features/events/events.ts - Notification history
frontend/src/app/features/notifications/notifications.ts - Activity dashboard
frontend/src/app/features/dashboard/dashboard.ts - API client
frontend/src/app/core/services/api.ts - Page router
frontend/src/app/app.routes.ts
Backend API
- Express application
backend/src/app.ts - Rule routes
backend/src/routes/rule.routes.ts - Rule management API
backend/src/controllers/rule.controller.ts - Event API
backend/src/controllers/event.controller.ts - Notification API
backend/src/controllers/notification.controller.ts
Event processing
- Event processor
backend/src/services/notifications/event-processing.service.ts - Rule engine
backend/src/services/rules/rule-engine.service.ts
Notification delivery
- Channel dispatcher
backend/src/services/channels/channel-dispatcher.service.ts - Email delivery
backend/src/services/channels/email.channel.ts - In-app delivery
backend/src/services/channels/in-app.channel.ts
Persistence
- Rule definitions
backend/src/models/notification-rule.model.ts - Notification records
backend/src/models/notification.model.ts
Other components
- User
- EmailJS
- MongoDB
Connections 33
- User → Rule management: manages rules
README.md - User → Event trigger: triggers events
README.md - User → Notification history: views history
README.md - User → Activity dashboard: monitors activity
README.md - Page router → Rule management: routes to
frontend/src/app/app.routes.ts - Page router → Rule editor: routes to
frontend/src/app/app.routes.ts - Page router → Event trigger: routes to
frontend/src/app/app.routes.ts - Page router → Notification history: routes to
frontend/src/app/app.routes.ts - Page router → Activity dashboard: routes to
frontend/src/app/app.routes.ts - Rule management → API client: calls
frontend/src/app/features/rules/rules.ts - Rule editor → API client: calls
frontend/src/app/features/rules/rule-form/rule-form.ts - Event trigger → API client: calls
frontend/src/app/features/events/events.ts - Notification history → API client: calls
frontend/src/app/features/notifications/notifications.ts - Activity dashboard → API client: calls
frontend/src/app/features/dashboard/dashboard.ts - API client → Express application: requests API
README.md - Express application → Rule routes: mounts
backend/src/app.ts - Rule routes → Rule management API: routes requests
backend/src/routes/rule.routes.ts - Rule management API → Rule definitions: reads and writes
backend/src/controllers/rule.controller.ts - Express application → Event API: mounts routes
backend/src/app.ts - Event API → Event processor: processes event
backend/src/controllers/event.controller.ts - Event processor → Rule definitions: loads enabled rules
backend/src/services/notifications/event-processing.service.ts - Event processor → Rule engine: evaluates rules
backend/src/services/notifications/event-processing.service.ts - Event processor → Notification records: creates records
backend/src/services/notifications/event-processing.service.ts - Event processor → Channel dispatcher: dispatches notifications
backend/src/services/notifications/event-processing.service.ts - Channel dispatcher → Email delivery: sends email
backend/src/services/channels/channel-dispatcher.service.ts - Channel dispatcher → In-app delivery: sends in-app
backend/src/services/channels/channel-dispatcher.service.ts - Email delivery → EmailJS: delivers via
README.md - Event processor → Notification records: updates status
backend/src/services/notifications/event-processing.service.ts - Express application → Notification API: mounts routes
backend/src/app.ts - Notification API → Notification records: reads history
backend/src/controllers/notification.controller.ts - Rule definitions → MongoDB: persists
README.md - Notification records → MongoDB: persists
README.md - Activity dashboard → API client: loads metrics
frontend/src/app/features/dashboard/dashboard.ts