How rohankumarshah696/cinevault---movie-note works
CINEVAULT is a React movie-discovery app: users browse or search TMDB titles, open movie details and trailers, and save titles to a local library. Its principal flow runs from routed pages through discovery/search or movie-card interactions to TMDB, with watchlist state persisted in Local Storage. The graph includes the documented trailer, recommendation, and TV-discovery features; their source was not fully sampled, so those links rely on README statements where applicable.
Main entry points: mediaApi.js TMDB API client · main.jsx Router and app entry · HomePage.jsx Home page · MovieGrid.jsx Search results
Components 23
Application shell
- Router and app entry
src/main.jsx - Shared app shell
src/App.jsx
Browse and discover
- Home page
src/Components/pages/HomePage.jsx - Featured movies
src/Components/HeroSetup/HeroSection.jsx - Trending titles
src/Components/Trending.jsx - Popular titles
src/Components/Popular.jsx - Discover filters
src/Discover/Section.jsx - Filter and sort
src/Discover/Checking.js
Search and movie details
- Search controls
src/Components/Header/SearchInput.jsx - Search results
src/searchMovies/MovieGrid.jsx - Search movie card
src/searchMovies/MovieSearch.jsx - Movie details and trailer
src/Components/MovieTrailer - Recommendations
src/Components/MovieTrailer - Movie cards
src/Components/MoviesSetup/MovieCards.jsx - TMDB API client
src/media/mediaApi.js
Library and state
- Search state
src/store/SearchSlice.js - Library action button
src/Components/WatchListButton.jsx - Personal library
src/Components/Library/LibSection.jsx - Library contents
src/Components/Library/Contents.jsx - Watchlist state
src/store/WatchListSlice.js
Other components
- Movie fan
- Browser Local Storage
- TMDB
Connections 31
- Movie fan → Router and app entry: opens app
- Router and app entry → Shared app shell: routes through
src/main.jsx - Router and app entry → Home page: routes to
src/main.jsx - Router and app entry → Discover filters: routes to
src/main.jsx - Router and app entry → Personal library: routes to
src/main.jsx - Router and app entry → Search results: routes to
src/main.jsx - Router and app entry → Movie details and trailer: routes to
src/main.jsx - Shared app shell → Search controls: renders
- Home page → Featured movies: shows
- Home page → Trending titles: shows
- Home page → Popular titles: shows
- Featured movies → TMDB API client: fetches titles
src/Components/HeroSetup/HeroSection.jsx - Trending titles → TMDB API client: fetches titles
- Popular titles → TMDB API client: fetches titles
src/Components/Popular.jsx - Discover filters → Filter and sort: uses filters
src/Discover/Section.jsx - Filter and sort → TMDB API client: requests titles
src/Discover/Checking.js - Search controls → Search state: updates state
src/Components/Header/SearchInput.jsx - Search results → Search state: reads query
src/searchMovies/MovieGrid.jsx - Search results → TMDB API client: searches titles
src/searchMovies/MovieGrid.jsx - Search results → Search movie card: renders results
src/searchMovies/MovieGrid.jsx - Search movie card → TMDB API client: fetches trailer
src/searchMovies/MovieSearch.jsx - Movie cards → TMDB API client: fetches trailer
src/Components/MoviesSetup/MovieCards.jsx - Movie details and trailer → TMDB API client: loads details
src/Components/MovieTrailer/Desc.jsx - Recommendations → TMDB API client: loads recommendations
src/Components/MovieTrailer/Desc.jsx - Movie cards → Library action button: renders action
src/Components/MoviesSetup/MovieCards.jsx - Library action button → Watchlist state: dispatches actions
src/Components/WatchListButton.jsx - Personal library → Library contents: renders contents
src/Components/Library/LibSection.jsx - Library contents → Movie cards: renders titles
src/Components/Library/Contents.jsx - Personal library → Watchlist state: reads saved titles
src/Components/Library/LibSection.jsx - Watchlist state → Browser Local Storage: reads and writes
src/store/WatchListSlice.js - TMDB API client → TMDB: requests media data
src/media/mediaApi.js