How cleverprogrammers/pwj-netflix-clone works
PWJ Netflix Clone is a learning project implementing a browser-based movie and TV catalogue with registration, login, session checks, browsing, and trailer playback. The main workflow authenticates a user, loads catalogue sections and wishlist data, displays titles, and fetches a trailer when a title is selected. The sampled JavaScript supports the auth, session, and catalogue relationships shown; HTML and CSS exist in the tree but were not sampled, so their wiring is not mapped.
Main entry points: script.js Movie Sections · login.js Login · register.js Registration · session.js Session Guard
Components 15
Authentication
- Registration
register.js - Login
login.js - Session Guard
session.js - Browser Token
session.js
Catalogue Browsing
- Catalogue Loader
script.js - Movie Sections
script.js - Wishlist
script.js
Trailer Playback
- Trailer Lookup
script.js - Trailer Embed
script.js
Other components
- Visitor
- Auth API
- Catalogue API
- Poster Images
- TMDB
- YouTube
Connections 16
- Visitor → Registration: submits form
- Visitor → Login: submits form
- Registration → Auth API: registers
register.js - Login → Auth API: authenticates
login.js - Login → Browser Token: saves token
login.js - Session Guard → Browser Token: checks token
session.js - Visitor → Session Guard: opens page
- Catalogue Loader → Movie Sections: loads sections
script.js - Catalogue Loader → Wishlist: loads wishlist
script.js - Movie Sections → Catalogue API: fetches titles
script.js - Wishlist → Catalogue API: fetches list
script.js - Movie Sections → Poster Images: loads artwork
script.js - Movie Sections → Trailer Lookup: selects title
script.js - Trailer Lookup → TMDB: fetches trailer
script.js - Trailer Embed → YouTube: embeds trailer
script.js - Trailer Lookup → Trailer Embed: sets trailer
script.js