How n4si/devsecops-project works
This is a React/TypeScript Netflix-style catalog and playback frontend backed by TMDB. The main user journey is routed browsing across the home and genre views, opening title details, and watching a selected title; the UI also exposes search, similar titles, and player controls. The sampled code confirms route wiring, API query construction, store setup, and several component dependencies. Other page-to-component and player-to-data connections are not shown in the excerpts, so they are omitted rather than inferred.
Main entry points: main.tsx React bootstrap · index.tsx Route table · apiSlice.ts TMDB API base · index.ts Redux store
Components 29
App entry and routing
- React bootstrap
src/main.tsx - Route table
src/routes/index.tsx - Main layout
src/layouts/MainLayout.tsx - Dark theme
src/theme/palette.ts - MUI class names
src/CustomClassNameSetup.ts
Catalog and discovery
- Home browse
src/pages/HomePage.tsx - Genre explore
src/pages/GenreExplore.tsx - Watch page
src/pages/WatchPage.tsx - Title search
src/components/SearchBox.tsx - Paged catalog grid
src/components/GridWithInfiniteScroll.tsx
Title and playback UI
- Title details
src/components/DetailModal.tsx - Featured title
src/components/HeroSection.tsx - Video slider
src/components/slick-slider/SlickSlider.tsx - Slider navigation
src/components/slick-slider/CustomNavigation.tsx - Similar titles
src/components/SimilarVideoCard.tsx - Video player
src/components/watch/VideoJSPlayer.tsx - Player controls
src/components/watch/PlayerControlButton.tsx - Volume control
src/components/watch/VolumeControllers.tsx - Loading screen
src/components/MainLoadingScreen.tsx
API and application state
- Redux store
src/store/index.ts - TMDB API base
src/store/slices/apiSlice.ts - API configuration
src/store/slices/configuration.ts - Catalog queries
src/store/slices/discover.ts - Genre state
src/store/slices/genre.ts - Movie data types
src/types/Movie.ts - Shared data types
src/types/Common.ts - Common utilities
src/utils/common.ts
Other components
- Viewer
- TMDB service
Connections 23
- Viewer → Route table: navigates
- React bootstrap → Route table: installs
src/main.tsx - React bootstrap → Redux store: provides
src/main.tsx - React bootstrap → API configuration: initiates
src/main.tsx - React bootstrap → Dark theme: configures
src/main.tsx - React bootstrap → MUI class names: loads
src/main.tsx - React bootstrap → Loading screen: uses fallback
src/main.tsx - Route table → Main layout: renders
src/routes/index.tsx - Route table → Home browse: routes to
src/routes/index.tsx - Route table → Genre explore: routes to
src/routes/index.tsx - Route table → Watch page: routes to
src/routes/index.tsx - Main layout → Title search: renders
- Redux store → TMDB API base: registers
src/store/index.ts - Redux store → Catalog queries: registers
src/store/index.ts - API configuration → TMDB API base: extends
src/store/slices/configuration.ts - Genre state → TMDB API base: uses
src/store/slices/genre.ts - Catalog queries → TMDB API base: extends
src/store/slices/discover.ts - Catalog queries → TMDB service: requests catalog and titles
src/store/slices/discover.ts - Title details → Similar titles: renders
src/components/DetailModal.tsx - Title details → Video player: renders
src/components/DetailModal.tsx - Video slider → Slider navigation: uses
src/components/slick-slider/SlickSlider.tsx - Volume control → Player controls: renders
src/components/watch/VolumeControllers.tsx - Movie data types → Shared data types: imports types
src/types/Movie.ts