How varphi-online/ua-navarch works
Main Components
A. Data Collection Layer
• Rust-based Scraper Service
• Parser Module
• Database Interface
• HTTP Client for UA Course Catalog
B. Web Application Layer
• SvelteKit Frontend/Backend
• API Routes
• Database Interface
• UI Components
[Data Source Layer]
• ↓
[Processing Layer]
• ↓
[Application Layer]
Detailed Component Breakdown
a. Data Source Layer:
• External UA Course Catalog (show as external system)
b. Processing Layer (Rust Scraper):
• Scraper component with three internal modules:
• Client Module (for HTTP requests)
• Parser Module (for data processing)
• Database Interface (for storage)
• Use a container symbol with internal compartments
c. Application Layer (SvelteKit):
• Frontend Components:
• Course Search
• Schedule Generator
• Weekly View
• Course/Section Cards
• Backend Services:
• API Routes (/api/search, /api/generate)
• Database Interface
• Routing System:
• Course Routes
• Schedule Routes
Connection and Data Flow
• Periodic data collection from UA Catalog → Scraper
• Scraper → Database
• API Routes ← → Database
• Frontend Components ← → API Routes
Technical Stack Indicators
Technology labels:
• Rust (Scraper)
• SvelteKit (Web Application)
• UI Components (Shadcn)
• Database (type determined by implementation)
Additional Details
Notes about:
• Cron job scheduling for scraper
• API endpoint purposes
• Component relationships
• State management flow
Remember to include the Docker container boundaries since the project uses Docker (as evidenced by the Dockerfile and compose.yml).
This system design should clearly show how the application fulfills its core purposes while maintaining a clear separation of concerns between the data collection, processing, and presentation layers.