How anishmandal939/movie-search-frontend works
Movie Search is a Next.js frontend that currently fetches and displays weekly trending movies. The principal implemented workflow is a request to the home page, a server-side trending API call, and rendering results as a grid of movie cards. The search box is present but remains a TODO: it does not call the API or display results. Loading and error UI exist, but the excerpts do not show their routing behavior. The README describes search, pagination, mock endpoints, and movie details as tasks or future work, not implemented subsystems.
Main entry points: page.tsx Home page · TrendingGrid.tsx Trending grid · MovieCard.tsx Movie card · api.ts API client
Components 11
App entry
- Home page
app/page.tsx - Loading state
app/loading.tsx - Error boundary
app/error.tsx
Movie presentation
- Search box
components/SearchBar/SearchBar.tsx - Trending grid
components/TrendingGrid/TrendingGrid.tsx - Movie card
components/MovieCard/MovieCard.tsx
API and data
- API client
lib/api.ts - Movie type
types/movie.ts
Other components
- Visitor
- Movie API
- TMDB images
Connections 10
- Visitor → Home page: opens
app/page.tsx - Home page → API client: fetches trending
app/page.tsx - API client → Movie API: requests trending
lib/api.ts - API client → Movie type: types response
lib/api.ts - Home page → Search box: renders
app/page.tsx - Home page → Trending grid: renders results
app/page.tsx - Trending grid → Movie card: renders each
components/TrendingGrid/TrendingGrid.tsx - Trending grid → Movie type: types movies
components/TrendingGrid/TrendingGrid.tsx - Movie card → Movie type: reads fields
components/MovieCard/MovieCard.tsx - Movie card → TMDB images: loads posters
components/MovieCard/MovieCard.tsx