How yiminwook/liveuta works
High-Level Architecture Components
a. Frontend Layer:
• Next.js Application (src/app directory structure)
• Client-side Components (src/components)
• State Management (src/stores using Zustand)
• Multiple UI Themes (public/theme-v2.css, theme.css)
b. Backend Layer:
• API Routes (src/app/api)
• Authentication System (NextAuth)
• Multiple Database Connections:
• MongoDB
• OracleDB
• Firebase
c. External Services:
• YouTube Data API
• Firebase Cloud Messaging
• Sentry (Error Tracking)
• Google Analytics
• Discord/Kakao Integration
Key Architectural Patterns to Highlight
a. Route Groups Organization:
(web)
• (inner) - Internal pages
• (pip) - Picture-in-Picture features
b. Feature Modules:
• Schedule Management
• Setlist Management
• Multi-view Capability
• Push Notifications
• Internationalization (i18n)
[Client Layer]
• Web Interface
• Public Pages
• Protected Pages
• Admin Interface
• State Management
• App Store
• Modal Store
• Player Store
• MultiView Store
[API Layer]
• Authentication
• NextAuth
• Custom Auth
• Core APIs
• Schedule
• Setlist
• Channel
• Push Notifications
[External Services]
• YouTube API
• Firebase
• Cloud Messaging
• Admin SDK
[Data Layer]
• MongoDB
• OracleDB
• Firebase Realtime
Important Connections
• Authentication flow between NextAuth and external providers
• Data flow between API Layer and databases
• Real-time connections for push notifications
• Integration points with YouTube API
Additional Elements
• API versioning notation (v1)
• Caching mechanisms
• Security boundaries
• Internationalization paths