How zakariafl27/laravel-job-scraper works
Job Alert System accepts job-search alerts through its API, processes scraping asynchronously, stores discovered jobs, and sends WhatsApp notifications. The scraping service excerpt shows Adzuna search and persistence; the README documents dashboard, filtering, queue, and WhatsApp capabilities, while the tree shows additional source-specific scrapers. Those broader scraper relationships are shown as an optional branch because their runtime orchestration was not excerpted. The dashboard’s detailed data flow is likewise not established by the available source.
Main entry points: JobScrapingService.php Scraping service · JobAlert.php Alert records · JobAlertController.php Alert API · ScrapeJobsForAlert.php Alert scrape job
Components 19
User interfaces
- Dashboard
resources/views/dashboard.blade.php - API routes
routes/api.php - Alert API
app/Http/Controllers/api/JobAlertController.php - Jobs API
app/Http/Controllers/api/JobController.php - Controller base
app/Http/Controllers/Controller.php
Alert processing
- Job queue
- Alert scrape job
app/Jobs/ScrapeJobsForAlert.php - Alert records
app/Models/JobAlert.php - User records
app/Models/User.php - Job records
app/Models/job.php - PostgreSQL
Job discovery
- Scraping service
app/Services/JobScrapingService.php - Adzuna API
- Scraper factory
app/Services/Scrapers/ScraperFactory.php - Source scrapers
app/Services/Scrapers
Notification delivery
- WhatsApp sender
app/Services/WhatsAppService.php - Baileys service
whatsapp-service/server.js - WhatsApp network
Other components
- Alert creator
Connections 23
- Alert creator → API routes: submits alert
README.md - API routes → Alert API: routes requests
routes/api.php - Alert API → Alert records: creates and reads
app/Http/Controllers/api/JobAlertController.php - Alert API → Alert scrape job: dispatches
app/Http/Controllers/api/JobAlertController.php - Alert scrape job → Job queue: runs asynchronously
README.md - Alert scrape job → Scraping service: requests scraping
app/Jobs/ScrapeJobsForAlert.php - Scraping service → Adzuna API: searches jobs
app/Services/JobScrapingService.php - Scraping service → Job records: upserts jobs
app/Services/JobScrapingService.php - Scraping service → Alert records: updates alert
app/Services/JobScrapingService.php - Alert scrape job → WhatsApp sender: sends new jobs
app/Jobs/ScrapeJobsForAlert.php - WhatsApp sender → Baileys service: posts message
app/Services/WhatsAppService.php - Baileys service → WhatsApp network: delivers message
README.md - WhatsApp sender → Alert records: marks notified
app/Services/WhatsAppService.php - Scraper factory → Source scrapers: selects source
app/Services/Scrapers/ScraperFactory.php - Scraping service → Scraper factory: may use
- Alert API → Controller base: extends
app/Http/Controllers/api/JobAlertController.php - Jobs API → Controller base: extends
app/Http/Controllers/api/JobController.php - Jobs API → Job records: queries jobs
app/Http/Controllers/api/JobController.php - Jobs API → Alert records: counts alerts
app/Http/Controllers/api/JobController.php - Alert records → PostgreSQL: persists data
README.md - Job records → PostgreSQL: persists data
README.md - User records → PostgreSQL: persists data
README.md - Alert creator → Dashboard: views dashboard
README.md