SCRAPE-2: Add scraper config constants #7

Merged
stephen merged 3 commits from scraper/config into dev 2026-01-31 20:54:44 -07:00
Owner

Create configuration module for scraper constants and settings with environment variable support. Includes 25 test cases.

Create configuration module for scraper constants and settings with environment variable support. Includes 25 test cases.
stephen added 4 commits 2026-01-29 16:19:50 -07:00
- Add ESLint 9 with flat config for Node.js linting
- Add lint and lint:fix npm scripts
- Add lint job to CI/CD pipeline
- Add notify job to send test/lint results to n8n webhook
- Webhook reports pass/fail status with failure details

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Stephen Minakian <stephenminakian@gmail.com>
Co-committed-by: Stephen Minakian <stephenminakian@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add scraper configuration module with environment variable support
Some checks failed
CI/CD Pipeline - Apartment API / Scan Dependencies (pull_request) Failing after 0s
CI/CD Pipeline - Apartment API / Run Linting (pull_request) Successful in 9m35s
CI/CD Pipeline - Apartment API / Run Tests (pull_request) Successful in 9m45s
CI/CD Pipeline - Apartment API / Send Webhook Notification (pull_request) Successful in 2s
CI/CD Pipeline - Apartment API / Build & Push Image (pull_request) Has been skipped
CI/CD Pipeline - Apartment API / Deploy to Production (pull_request) Has been skipped
7114aee239
- Create config/scraper.js with all scraper constants
- Add TARGET_URL for apartment listing page
- Add SCRAPER_SCHEDULE, SCRAPER_TIMEZONE, SCRAPER_ENABLED settings
- Add SCRAPER_TIMEOUT and USER_AGENT settings
- Add RETRY_CONFIG with maxRetries, baseDelay, timeout
- Add COLLECTIONS object with env var overrides for all 4 collections
- Create comprehensive test suite with 25 test cases
stephen changed target branch from main to dev 2026-01-29 16:24:55 -07:00
stephen added 1 commit 2026-01-31 20:10:16 -07:00
stephen added 1 commit 2026-01-31 20:13:08 -07:00
Update .github/workflows/deploy.yml
All checks were successful
CI/CD Pipeline - Apartment API / Scan Dependencies (pull_request) Successful in 15s
CI/CD Pipeline - Apartment API / Run Linting (pull_request) Successful in 9m35s
CI/CD Pipeline - Apartment API / Run Tests (pull_request) Successful in 9m46s
CI/CD Pipeline - Apartment API / Send Webhook Notification (pull_request) Successful in 2s
CI/CD Pipeline - Apartment API / Build & Push Image (pull_request) Has been skipped
CI/CD Pipeline - Apartment API / Deploy to Production (pull_request) Has been skipped
7a10aa3036
stephen merged commit 2993d019c5 into dev 2026-01-31 20:54:44 -07:00
stephen deleted branch scraper/config 2026-01-31 20:54:44 -07:00
Author
Owner

❌ Pipeline Failed

Lint: ❌ Failed

This is a test lint failure

Test: ❌ Failed

This is a test failure.
## ❌ Pipeline Failed ### Lint: ❌ Failed ``` This is a test lint failure ``` ### Test: ❌ Failed ``` This is a test failure. ```
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stephen/apartment-dashboard-api#7
No description provided.