How opeyemi285/moviq works
Purpose and Entry Points
Moviq is a static, multi-page movie-discovery site. Each HTML page is an independent browser entry point with a paired CSS and JavaScript file:
• Landing/discovery: index.html, index.js, index.css
• Movie catalog: all-movies.html, all-movies.js, all-movies.css
• Movie detail/trailer view: details.html, details.js, details.css
• Authentication/onboarding screens: signin.html, signup.html, onboarding.html
Page-Oriented Frontend Architecture
There is no evident shared application shell, backend, build system, or server-side routing in the repository. Navigation and state transfer are expected to occur through browser page loads, likely with URL parameters or browser storage between:
• index.html
• all-movies.html
• details.html
Each page owns its layout, styling, DOM interaction, and data-fetch/render behavior through its co-located JavaScript.
Movie Discovery and Catalog Flow
The primary browsing flow starts from the landing page and continues into a broader movie listing:
• index.js
• all-movies.js
• details.js
JavaScript uses the browser Fetch API to retrieve movie content from TMDB. Returned movie records are rendered into page-specific UI, supporting discovery and search. Selection of a movie transitions the user to details.html, where the selected title’s metadata is presented.
Movie Details and Trailer Boundary
The detail page is the external-data integration boundary for a selected movie:
• details.html
• details.js
• details.css
It presents descriptive metadata, ratings, release dates, and trailer content. TMDB supplies both core movie information and trailer/video data; the frontend is responsible for mapping that API response into the detail-page DOM and embedding or linking trailer playback.
User Journey Screens
Authentication and onboarding are distinct client-side screens:
• signin.html, signin.js, signin.css
• signup.html, signup.js, signup.css
• onboarding.html, onboarding.js, onboarding.css
No backend, identity provider, or persistence layer is represented in the tree. These pages therefore form a UI-level user journey boundary; any credential validation or session behavior must be implemented locally or delegated to services not present here.
Runtime, Dependencies, and Deployment
The runtime is the browser: HTML5, CSS3, JavaScript, Fetch API, and Bootstrap styling/components. TMDB is the material external service and supplies movie and trailer data. The README links a Vercel deployment, consistent with static hosting. Repository-hosted static assets include favicon metadata under favicon/ and imagery under images/.
Architectural Constraints
The duplicated per-page CSS/JS structure favors independently deployable static pages but creates cross-page consistency and shared-state risks. The principal integration contracts are TMDB request/response shapes and the mechanism used to identify a selected movie when moving from catalog pages to details.html.
Main entry points: index.html Landing page · index.js Landing discovery logic · all-movies.js Catalog logic · all-movies.html Movie catalog
Components 15
Movie discovery
- Landing page · Paired with page-specific CSS and JavaScript.
index.html - Landing discovery logic · Fetches and renders discovery results.
index.js - Movie catalog · Broader searchable movie listing.
all-movies.html - Catalog logic · Fetches, searches, and renders catalog records.
all-movies.js - Movie details · Selected-title metadata and trailer view.
details.html - Details logic · Maps movie and video responses into the detail DOM.
details.js - Selected movie handoff · URL parameters or browser storage identify the selected movie.
User journey screens
- Sign in · Independent UI page with local or delegated session behavior.
signin.html - Sign up · Independent UI page with no represented identity backend.
signup.html - Onboarding · Independent onboarding UI page.
onboarding.html
Runtime & external services
- Browser runtime · Runs each page independently and provides Fetch API navigation.
- TMDB API · Supplies movie metadata, search results, and trailer/video data.
- Bootstrap · Provides styling and UI components.
- Static assets · Favicon metadata and image resources.
- Static hosting · Vercel-hosted static site deployment.
Connections 21
- Static hosting → Browser runtime: serves static pages
- Browser runtime → Landing page: loads
- Browser runtime → Movie catalog: loads
- Browser runtime → Movie details: loads
- Landing page → Landing discovery logic: runs
- Movie catalog → Catalog logic: runs
- Movie details → Details logic: runs
- Landing discovery logic → TMDB API: fetches movie content
- Catalog logic → TMDB API: fetches and searches
- Details logic → TMDB API: fetches metadata and videos
- Landing discovery logic → Movie catalog: navigates to catalog
- Landing discovery logic → Selected movie handoff: sets selected movie
- Catalog logic → Selected movie handoff: sets selected movie
- Selected movie handoff → Details logic: resolves selected title
- Sign in → Sign up: user journey
- Sign up → Onboarding: continues to
- Browser runtime → Sign in: loads
- Browser runtime → Sign up: loads
- Browser runtime → Onboarding: loads
- Landing page → Bootstrap: uses UI styling
- Landing page → Static assets: uses imagery and favicon