How mdiqbalhossan/safevax works
Main System Components
a) Presentation Layer
• Web Interface (Blade Views)
• Public Assets (CSS/JS)
b) Application Layer
• Controllers (Member, Search)
• Events & Listeners
• Mail System
• Console Commands
c) Domain Layer
• Models (Member, Schedule, VaccineCenter, User)
d) Infrastructure Layer
• Database
• Email Service
• File Storage
• Cache System
Component Relationships
a) User Flow:
Web Browser -> Routes -> Controllers -> Models -> Database
b) Notification Flow:
Console Commands -> Events -> Listeners -> Mail System -> External Email Service
Specific Implementation Details
• Blue: User-facing components (views, public assets)
• Green: Business logic (controllers, events, listeners)
• Yellow: Data layer (models, database)
• Purple: Infrastructure services (mail, cache, storage)
Key Components
a) Frontend Components:
• Registration View (resources/views/register.blade.php)
• Search View (resources/views/search.blade.php)
• Success View (resources/views/success.blade.php)
• Layout Components (resources/views/layout)
b) Backend Components:
• MemberController
• SearchController
• ScheduleVaccine Event
• ScheduleVaccination Listener
• VaccinationReminder Mail
c) Data Models:
• Member
• Schedule
• VaccineCenter
• User
d) Infrastructure Services:
• Database (SQLite/MySQL)
• Email Service
• Cache System
• Storage System
Cron Job -> SendVaccinationReminders Command -> Mail System
Architectural Patterns to Highlight
• MVC Pattern (Controllers, Models, Views)
• Event-Driven Architecture (Events & Listeners)
• Repository Pattern (Data Access)
• Service Layer (Mail, Notifications)
Additional Notes
Annotations for:
• Cron job configuration
• Email service configuration
• Database migration flow
• Testing coverage