How haileamlak-bekele/hb-movie-center works
HB-movie-center is a small browser-based movie discovery project using The Movie Database (TMDB). The visible user journey is to enter a title, view search results, open a movie’s details, and browse recommendations; a separate trending view fetches and displays trending titles. The repository also includes a server API handler for trending data and a shared request-options module, though the sampled trending script defines its own options. HTML-to-script wiring and other unsampled behavior are not asserted.
Main entry points: search.js Movie search · search-details.html Movie details page · search-detail.js Movie details and recommendations · tranding-movies.js Trending carousel
Components 11
Movie discovery
- Movie search
search.js - Movie details and recommendations
search-detail.js - Trending carousel
tranding-movies.js - Shared request options
apicallheader.js
Browser presentation
- Banner and search UI
bannner.js - Search results page
search-result.html - Movie details page
search-details.html - Home page
index.html
Server API
- Trending API handler
api/movies.js
Other components
- Movie viewer
- TMDB API
Connections 12
- Movie viewer → Banner and search UI: uses
bannner.js - Banner and search UI → Movie search: navigates to
bannner.js - Movie search → Search results page: renders results
search.js - Movie search → TMDB API: searches
search.js - Movie search → Movie details page: opens detail
search.js - Movie details and recommendations → TMDB API: fetches details and recommendations
search-detail.js - Movie details and recommendations → Movie details page: renders detail
search-detail.js - Movie details and recommendations → Movie details page: links recommendations
search-detail.js - Trending carousel → TMDB API: fetches trending
tranding-movies.js - Trending carousel → Movie details page: opens detail
tranding-movies.js - Trending API handler → TMDB API: fetches trending
api/movies.js - Shared request options → Trending carousel: referenced by
tranding-movies.js