How goktugyalcin/where-can-i-watch works
Main Components
a. Frontend Layer:
• Next.js Application (Client-Side)
• Components directory (React components)
• App directory (Next.js 13+ App Router)
• Public Assets
• Styling (Tailwind CSS)
b. Backend Layer:
• API Routes (Next.js Server-Side)
• /fetchCountry
• /fetchProviders
• /fetchSearch
• External Services Integration
• TMDB API
c. State Management:
• Zustand Store
Component Relationships
[Client Browser] ←→ [Next.js Frontend]
• ↓
[Next.js API Routes] ←→ [TMDB API]
Detailed Component Breakdown
Frontend Components (Group these together):
• Interactive Elements (AnimatedShinyText, HeaderButton)
• Layout Components (BlurFade, GridPattern)
• Feature Components (CountryWrapper, ImprintWatchCategories)
• Form Elements (GeneratedSelect, GeneratedValue)
API Routes (Create a separate section):
• /fetchCountry
• /fetchProviders
• /fetchSearch
Data Flow Visualization
• User interactions → Frontend components
• Frontend → API routes
• API routes → TMDB API
• State updates through Zustand
Infrastructure Layer
A section showing:
• Docker container
• Development environment
• Build process
[Client Layer]
• ↓
[Frontend Layer]
• ↓
[API Layer]
• ↓
[External Services Layer]
1. Next.js App Router architecture, as this is a modern Next.js application using the app directory structure.