How sirkvonleben/cinemax works
Project type and purpose
• This is a single-page React application (bootstrapped with Create React App) for browsing and viewing movie data. There is no custom backend in this repo; it fetches data via a service layer (src/services/movieService.js) and uses client-side state and storage (Context API, hooks, localStorage).
File structure
• Top-level: configuration (.eslintrc.js, .prettierrc, Husky hooks), standard CRA files (public/, README.md, package.json).
• public/: static HTML shell and manifest.
• src/:
• index.jsx and App.jsx bootstrap React and wrap the app in providers.
• appRoutes.js: client-side routing.
• components/: reusable UI controls (Header, Footer, HeroSection, MovieCard, MovieModal).
• layouts/: MainLayout.jsx applies common page chrome.
• pages/: two routes—Home and MovieDetails.
• context/AuthContext.jsx: app-wide authentication or user state container.
• hooks/: custom hooks—useFetchMovies, useLocalStorage.
• services/movieService.js: abstracts API calls or static data.
• data/movies.js: fallback/static movie dataset.
• utils/formatDate.js: helper function.
• styles/ and module CSS files for styling.