How junedkhan-pathan/moviex-app works
Movix is a movie and TV discovery frontend. Users browse the home page or explore a media category, search titles, and open a title’s details, cast, videos, and related recommendations. The app loads TMDB configuration and genres into shared Redux state; page-level fetches use a common API client, while reusable presentation components render results. The tree and source index document the explore and detail subfeatures, though some implementations were not sampled, so their internal links are omitted where unverified.
Main entry points: App.jsx Routes and shell · useFetch.jsx Fetch hook · Carousel.jsx Title carousel · Details.jsx Title details
Components 24
App and navigation
- App entry
src/main.jsx - Routes and shell
src/App.jsx - Navigation and search
src/components/header/Header.jsx
Discovery pages
- Home
src/pages/home/Home.jsx - Hero banner
src/pages/home/heroBanner/HeroBanner.jsx - Trending titles
src/pages/home/trending/Trending.jsx - Popular titles
src/pages/home/popular/Popular.jsx - Top rated
src/pages/home/topRated/TopRated.jsx - Media exploration
src/pages/explore - Search results
src/pages/serachResult/SearchResult.jsx
Title details
- Title details
src/pages/details/Details.jsx - Title overview
src/pages/details/detailsBanner/DetailsBanner.jsx - Cast
src/pages/details/cast/Cast.jsx - Video section
src/pages/details/videoSection/VideoSection.jsx - Similar titles
src/pages/details/carousels/Similar.jsx - Recommendations
src/pages/details/carousels/Recommendation.jsx
Data and state
- Fetch hook
src/hooks/useFetch.jsx - TMDB API client
src/utils/api.js - Home state
src/store/homeSlice.js
Shared interface
- Title carousel
src/components/carousel/Carousel.jsx - Movie cards
src/components/movieCard/MovieCard.jsx - Shared display
src/components
Other components
- Visitor
- TMDB service
Connections 38
- Visitor → Navigation and search: searches or navigates
src/components/header/Header.jsx - App entry → Routes and shell: renders
src/main.jsx - Routes and shell → Navigation and search: renders
src/App.jsx - Routes and shell → Home: routes to
src/App.jsx - Routes and shell → Title details: routes to
src/App.jsx - Routes and shell → Search results: routes to
src/App.jsx - Routes and shell → Media exploration: routes to
src/App.jsx - Navigation and search → Media exploration: navigates to
- Navigation and search → Search results: navigates to
- Home → Hero banner: renders
src/pages/home/Home.jsx - Home → Trending titles: renders
src/pages/home/Home.jsx - Home → Popular titles: renders
src/pages/home/Home.jsx - Home → Top rated: renders
src/pages/home/Home.jsx - Trending titles → Fetch hook: fetches with
src/pages/home/trending/Trending.jsx - Popular titles → Fetch hook: fetches with
src/pages/home/popular/Popular.jsx - Top rated → Fetch hook: fetches with
src/pages/home/topRated/TopRated.jsx - Hero banner → Fetch hook: fetches with
src/pages/home/heroBanner/HeroBanner.jsx - Search results → TMDB API client: queries
src/pages/serachResult/SearchResult.jsx - Title details → Title overview: renders
src/pages/details/Details.jsx - Title details → Cast: renders
src/pages/details/Details.jsx - Title details → Video section: renders
src/pages/details/Details.jsx - Title details → Similar titles: renders
src/pages/details/Details.jsx - Title details → Recommendations: renders
src/pages/details/Details.jsx - Title overview → Fetch hook: fetches with
src/pages/details/detailsBanner/DetailsBanner.jsx - Similar titles → Fetch hook: fetches with
src/pages/details/carousels/Similar.jsx - Recommendations → Fetch hook: fetches with
src/pages/details/carousels/Recommendation.jsx - Fetch hook → TMDB API client: calls
src/hooks/useFetch.jsx - Routes and shell → TMDB API client: loads configuration
src/App.jsx - Routes and shell → Home state: dispatches configuration
src/App.jsx - Title carousel → Home state: reads image URLs
src/components/carousel/Carousel.jsx - Trending titles → Title carousel: renders
src/pages/home/trending/Trending.jsx - Popular titles → Title carousel: renders
src/pages/home/popular/Popular.jsx - Top rated → Title carousel: renders
src/pages/home/topRated/TopRated.jsx - Similar titles → Title carousel: renders
src/pages/details/carousels/Similar.jsx - Recommendations → Title carousel: renders
src/pages/details/carousels/Recommendation.jsx - Title carousel → Shared display: uses display components
src/components/carousel/Carousel.jsx - Movie cards → Shared display: uses display components
src/components/movieCard/MovieCard.jsx - TMDB API client → TMDB service: requests data
src/utils/api.js