How andystmc/track-your-attendance works
Main Components
A. Frontend Layer:
• Client-Side Components (/app/ui/*)
• Main App Component
• Admin Interface
• User Interface (Schedule, Sessions, Identity components)
• Common Components (AppBar, SocialBar)
B. Application Layer:
• Next.js Server Components
• API Routes (/app/api/*)
• Redux State Management
• Admin Store
• User Store
C. Backend Services:
• Authentication System
• Key Verification
• Password Verification
• Admin Services
• Holiday Management
• Properties Management
• Special Working Days
• Data Scraping Service
• Database Layer (indicated by db.ts and models.ts)
[Client Layer]
• ↕
[Application Layer]
• ↕
[Data Layer]
Component Relationships
• User interactions → Frontend Components
• Frontend → API Routes
• API Routes → Backend Services
• Backend Services → Database
• Redux Store ↔ Frontend Components
Detailed Component Breakdown
Frontend:
[App Shell]
• AppBar
• Main Content Area
• Schedule View
• Sessions View
• Collection Interface
• Stats Display
• Admin Panel
• Holiday Management
• Properties Control
• Special Working Days
Backend:
[API Layer]
• Admin Routes
• Data Management
• Holiday Control
• Properties API
• Authentication
• Key Verification
• Password Verification
• Data Services
• Scraping Service
• Verification Service
Additional Elements
• Google Analytics integration
• Middleware placement and flow
• Utils functions distribution
• Database operations flow
• External service connections