How sahaanurag207-oss/movie-search-engine works
Movie Discovery is a React app for finding movies, viewing details, and keeping session-only favorites. The user searches from Discover; Home loads an initial collection or delegates title searches to the fallback helper, then displays cards. A card can open a quick view, which fetches full OMDb details, or toggle a favorite held by App state; the Favorites route displays those saved movies. The graph reflects sampled calls and props plus README-documented integrations. Other unsampled styling and responsive behavior are not expanded into separate runtime components.
Main entry points: App.jsx Routes and state · movie_card.jsx Movie card · Home.jsx Discover page · searchWithFallback.js Search and fallback
Components 12
App shell
- React entry
src/main.jsx - Routes and state
src/App.jsx - Navigation
src/components/Nav_Bar.jsx
Movie discovery
- Discover page
src/pages/Home.jsx - Search and fallback
src/utils/searchWithFallback.js
Movie views
- Movie card
src/components/movie_card.jsx - Poster display
src/components/MoviePoster.jsx - Quick view
src/components/MovieQuickView.jsx
Favorites
- Favorites page
src/pages/Favorites.jsx
Other components
- Browser user
- OMDb API
- Datamuse API
Connections 18
- Browser user → React entry: opens app
README.md - React entry → Routes and state: renders
src/main.jsx - Routes and state → Navigation: renders
src/App.jsx - Routes and state → Discover page: routes and supplies state
src/App.jsx - Routes and state → Favorites page: routes and supplies state
src/App.jsx - Routes and state → Quick view: renders selected movie
src/App.jsx - Discover page → Search and fallback: searches titles
src/pages/Home.jsx - Search and fallback → OMDb API: requests search results
src/utils/searchWithFallback.js - Search and fallback → Datamuse API: requests spelling suggestions
src/utils/searchWithFallback.js - Discover page → Movie card: renders results
src/pages/Home.jsx - Favorites page → Movie card: renders saved movies
src/pages/Favorites.jsx - Movie card → Poster display: renders poster
src/components/movie_card.jsx - Quick view → Poster display: renders poster
src/components/MovieQuickView.jsx - Quick view → OMDb API: fetches movie details
src/components/MovieQuickView.jsx - Browser user → Discover page: searches movies
README.md - Browser user → Movie card: opens details or toggles favorite
src/components/movie_card.jsx - Browser user → Navigation: chooses page
src/components/Nav_Bar.jsx - Movie card → Routes and state: invokes favorite callback