How zeyadhatem391/popflix_next works
Popflix is a movie-discovery and account web app. Users browse the home catalog, explore movies, genres, actors and companies, inspect movie details, and can keep a per-user favorites list; account flows include registration, login and OTP verification. The graph shows the homepage’s documented composition, sampled actor/favorites/auth interactions, and the TMDB client boundary. Many route and feature files were not sampled, so their internal calls are omitted rather than inferred from directory names.
Main entry points: app/page.tsx Home page · register/page.tsx Registration · client.ts TMDB API client · ActorsClient.tsx Actors browser
Components 26
Catalog discovery
- Home page
src/app/page.tsx - Home sections
src/modules/home/components/organisms/MoviesSection.tsx - Category browsing
src/modules/home/components/organisms/Categories.tsx - Popular actors
src/modules/home/components/organisms/ActorPopular.tsx - Category lookup
src/modules/categories/api/GetCategories.ts - Genre browsing
src/modules/genre/api/GetGenreMovie.ts - Movie search
src/modules/search/components/SearchPageContent.tsx
Movie and people details
- Actors browser
src/modules/actors/components/ActorsClient.tsx - Actor cards
src/modules/actors/components/ActorsCards.tsx - Actor lookup
src/modules/actors/api/GetActors.ts - Movie details
src/modules/movieDetails/components/MovieDetails.tsx - Movie detail lookup
src/modules/movieDetails/api/getMovieDetails.ts - Company browsing
src/modules/Company/components/CompanyMovies.tsx
Accounts and favorites
- Registration
src/app/(auth)/register/page.tsx - User store
src/modules/(auth)/register/store/register.store.ts - Input validation
src/shared/schemas/validationSchmas.ts - Login
src/app/(auth)/login/page.tsx - OTP verification
src/app/(auth)/otp-verify/page.tsx - Favorite action
src/modules/movieDetails/components/FavoriteButtonClient.tsx - Favorites store
src/modules/favorites/store/favorites.store.ts - Favorites view
src/modules/favorites/components/FavoritesClient.tsx - Favorite movie lookup
src/modules/favorites/hooks/useGetFavoriteMovies.ts
Application services
- Auth service
src/auth.ts - TMDB API client
src/lib/client.ts
Other components
- Visitor
- TMDB API
Connections 24
- Visitor → Home page: opens
- Home page → Home sections: renders
src/app/page.tsx - Home page → Category browsing: renders
src/app/page.tsx - Home page → Popular actors: renders
src/app/page.tsx - Category browsing → Category lookup: loads categories
src/modules/home/components/organisms/Categories.tsx - Popular actors → TMDB API: loads popular actors
- Actors browser → Actor lookup: loads actors
src/modules/actors/components/ActorsClient.tsx - Actors browser → Actor cards: renders results
src/modules/actors/components/ActorsClient.tsx - Actor lookup → TMDB API client: requests data
src/modules/actors/api/GetActors.ts - Genre browsing → TMDB API client: requests data
src/modules/genre/api/GetGenreMovie.ts - Movie details → Movie detail lookup: loads details
- Movie search → TMDB API: searches titles
- Registration → Input validation: validates input
src/app/(auth)/register/page.tsx - Registration → User store: adds user
src/app/(auth)/register/page.tsx - Login → Input validation: validates input
src/app/(auth)/login/page.tsx - OTP verification → User store: uses account state
src/app/(auth)/otp-verify/page.tsx - Login → Auth service: authenticates
- Visitor → Registration: creates account
- Movie details → Favorite action: offers favorite action
- Favorite action → Favorites store: adds or removes
src/modules/movieDetails/components/FavoriteButtonClient.tsx - Favorites view → Favorites store: reads favorites
src/modules/favorites/components/FavoritesClient.tsx - Favorites view → Favorite movie lookup: loads saved titles
src/modules/favorites/components/FavoritesClient.tsx - Favorite movie lookup → TMDB API: fetches titles
- TMDB API client → TMDB API: sends requests
src/lib/client.ts