How eldi96/t04-animal-monitor works
This is a Daejeon abandoned-animal notice monitoring application. Its primary workflow collects the public API’s listings, validates and aggregates notices by KST posting date, records daily snapshots and monitoring status, then presents current counts and date-to-date analysis. Separate reliability and recovery views expose real collection health; a fixture-backed replay workflow demonstrates synthetic failures and recovery without changing real records. The sampled excerpts and README support the main wiring; some page-to-client interactions are mediated by App props, and unsampled implementation details are not inferred.
Main entry points: App.tsx Frontend app · routes.py API routes · animal_api.py API collector · monitoring.py Monitoring service
Components 21
Collection and monitoring
- FastAPI entry
backend/app/main.py - Daily scheduler
backend/app/services/scheduler.py - API routes
backend/app/api/routes.py - API collector
backend/app/services/animal_api.py - Monitoring service
backend/app/services/monitoring.py - Runtime configuration
backend/app/config.py
Persistence and contracts
- Data contracts
backend/app/models/schemas.py - Snapshot repository
backend/app/storage/repository.py
Synthetic replay
- Fixture replay engine
backend/app/services/replay.py - Public fixture package
assets/studio-task-assets/t04-real-information-board/asset-manifest.json
User interface
- Frontend app
frontend/src/App.tsx - API client
frontend/src/api/client.ts - Home dashboard
frontend/src/pages/HomePage.tsx - Daily analysis
frontend/src/pages/AnalysisPage.tsx - Reliability view
frontend/src/pages/ReliabilityPage.tsx - Failure testing
frontend/src/pages/FailureTestPage.tsx - Recovery view
frontend/src/pages/RecoveryPage.tsx - Value comparison
frontend/src/components/ValueComparison.tsx - Icon component
frontend/src/components/Icon.tsx
Other components
- Viewer
- Daejeon notices API
Connections 26
- Viewer → Frontend app: uses
README.md - Frontend app → Home dashboard: renders
frontend/src/App.tsx - Frontend app → Daily analysis: renders
frontend/src/App.tsx - Frontend app → Reliability view: renders
frontend/src/App.tsx - Frontend app → Failure testing: renders
frontend/src/App.tsx - Frontend app → Recovery view: renders
frontend/src/App.tsx - Frontend app → API client: requests data
frontend/src/App.tsx - API client → API routes: calls endpoints
frontend/src/api/client.ts - Home dashboard → Value comparison: renders
frontend/src/pages/HomePage.tsx - Home dashboard → Icon component: renders
frontend/src/pages/HomePage.tsx - Reliability view → Value comparison: renders
frontend/src/pages/ReliabilityPage.tsx - Failure testing → Icon component: renders
frontend/src/pages/FailureTestPage.tsx - Recovery view → Icon component: renders
frontend/src/pages/RecoveryPage.tsx - FastAPI entry → API routes: registers
backend/app/main.py - FastAPI entry → Daily scheduler: starts
backend/app/main.py - API routes → API collector: collects through
backend/app/api/routes.py - API collector → Daejeon notices API: fetches listings
backend/app/services/animal_api.py - API routes → Monitoring service: uses
backend/app/api/routes.py - API routes → Snapshot repository: reads and writes
backend/app/api/routes.py - Monitoring service → Snapshot repository: persists status
backend/app/services/monitoring.py - API collector → Runtime configuration: uses settings
backend/app/services/animal_api.py - API collector → Data contracts: creates records
backend/app/services/animal_api.py - Monitoring service → Data contracts: uses contracts
backend/app/services/monitoring.py - Snapshot repository → Data contracts: serializes records
backend/app/storage/repository.py - API routes → Fixture replay engine: dispatches replay
backend/app/api/routes.py - Fixture replay engine → Public fixture package: loads fixtures
README.md