How tahayparker/findmyprof works
Main Components
A. Frontend Layer:
• Client-Side Pages (src/pages/)
• React Components (src/components/)
• Styling Modules (src/styles/)
B. Backend Layer:
• API Routes (src/pages/api/)
• Database Interface (src/lib/db.ts)
• Prisma ORM Layer
C. External Services:
• PostgreSQL Database (Neon)
• GitHub Actions Automation
• MyUOWD Timetable System
D. Data Processing:
• Python Scripts (scripts/)
• Schedule Generation
• Timetable Scraping
Component Relationships
[External Data Source]
• ↓
[GitHub Actions Automation]
• ↓
[Python Scripts] → [Database]
• ↑ ↑
[Next.js Backend] ←→ [Prisma ORM]
• ↑
[Next.js Frontend]
• ↑
[Client Browser]
Specific Implementation Details
Frontend Components:
• ProfessorsList
• Availability Checker
• Custom Graphs
• Interactive Timetable
• Professor Details View
API Routes:
• /api/professors
• /api/check-availability
• /api/schedule
• /api/professorDetails
Database Layer:
• Prisma Schema
• PostgreSQL Tables
• Data Models
Automation:
• Daily Updates (00:00 GST)
• Timetable Scraping
• Schedule Generation
Important Architectural Patterns to Highlight
• Next.js Pages Router Architecture
• API Routes Pattern
• Database Access Layer
• Automated Data Pipeline
• Real-time Availability Checking
Additional Elements
Specific elements:
• API endpoint connections
• Database relationships
• Automation workflow
• Client-server interaction paths
Technical Stack Indicators
• Next.js + TypeScript
• Prisma ORM
• PostgreSQL
• Python Scripts
• TailwindCSS
• GitHub Actions
This system design should emphasize the application's unique features like real-time availability checking and automated timetable updates, while clearly showing how all components work together to deliver the final user experience.