How yogesh-g-a/netflix-clone-mern works
Cineflix is a React discovery frontend backed by an Express media API, with Supabase handling authentication, profiles, and cloud watchlists. The main journey is browsing or searching titles, opening movie/TV details, and saving titles to a personal watchlist. The README documents industry and genre discovery, responsive navigation, and trailer playback; these are represented alongside that journey. Legacy server auth/watchlist modules are not shown as active flows: the sampled Express app says those endpoints have migrated to Supabase. Arrows rely on excerpts, source-index references, or README statements; unsampled links are omitted.
Main entry points: App.jsx Application routes · api.js API client · MovieDetails.jsx Movie and TV details · tmdbService.js Discovery service
Components 22
Discovery frontend
- Application routes
client/src/App.jsx - Discovery pages
client/src/pages - Search page
client/src/pages/SearchPage.jsx - Movie and TV details
client/src/pages/MovieDetails.jsx - Industry discovery
client/src/pages/IndustryPage.jsx - Genre discovery
client/src/pages/GenresPage.jsx - API client
client/src/services/api.js - Media cards
client/src/components/MovieCard.jsx - Content and trailer views
client/src/components - Responsive navigation
client/src/components/MobileNav.jsx
Identity and watchlist
- Auth context
client/src/context/AuthContext.jsx - Watchlist context
client/src/context/WatchlistContext.jsx - Supabase client
client/src/services/supabase.js
Media API
- Media routes
server/src/routes/mediaRoutes.js - Media controller
server/src/controllers/mediaController.js - Discovery service
server/src/services/tmdbService.js - Express API app
server/src/app.js
Media sources
- TMDB configuration
server/src/config/tmdb.js - Fallback catalog
server/src/services/fallbackData.js
Other components
- Viewer
- Supabase cloud
- TMDB API
Connections 28
- Viewer → Application routes: uses
client/src/App.jsx - Application routes → Discovery pages: routes to
client/src/App.jsx - Application routes → Search page: routes to
client/src/App.jsx - Application routes → Movie and TV details: routes to
client/src/App.jsx - Application routes → Industry discovery: routes to
client/src/App.jsx - Application routes → Genre discovery: routes to
client/src/App.jsx - Application routes → Responsive navigation: renders
client/src/App.jsx - Search page → API client: searches via
client/src/pages/SearchPage.jsx - Search page → Media cards: renders
client/src/pages/SearchPage.jsx - Discovery pages → API client: requests media
client/src/pages/Home.jsx - Discovery pages → Content and trailer views: renders
client/src/pages/Home.jsx - Industry discovery → API client: requests titles
client/src/pages/IndustryPage.jsx - Industry discovery → Media cards: renders
client/src/pages/IndustryPage.jsx - Movie and TV details → API client: loads details
client/src/pages/MovieDetails.jsx - Movie and TV details → Watchlist context: checks saved titles
client/src/pages/MovieDetails.jsx - Movie and TV details → Content and trailer views: renders trailers
client/src/pages/MovieDetails.jsx - Media cards → Watchlist context: updates list
client/src/components/MovieCard.jsx - API client → Express API app: calls media API
- Express API app → Media routes: mounts routes
server/src/app.js - Media routes → Media controller: dispatches
server/src/routes/mediaRoutes.js - Media controller → Discovery service: requests discovery
server/src/controllers/mediaController.js - Discovery service → TMDB configuration: uses settings
server/src/services/tmdbService.js - Discovery service → Fallback catalog: uses fallback
server/src/services/tmdbService.js - Discovery service → TMDB API: fetches titles
server/src/services/tmdbService.js - Auth context → Supabase client: uses client
client/src/context/AuthContext.jsx - Watchlist context → Supabase client: uses client
client/src/context/WatchlistContext.jsx - Watchlist context → Auth context: reads identity
client/src/context/WatchlistContext.jsx - Supabase client → Supabase cloud: connects to
README.md