How sreenidhihayagreevan/movie-recomendation works
Project type and purpose
• This is a single-page React application (built with Vite and TypeScript) that provides movie listings and personalized recommendations. It lives entirely in the browser, fetching data either from a local CSV or from external HTTP APIs (authentication and movie data).
File structure
Top-level directories and files:
• public/ – static assets (videos, media, shell scripts)
• src/ – all application code
• components/ – reusable UI pieces (layout, auth, movies, recommendations)
• pages/ – route-level components (Home, Login, AllMovies, MovieDetail, Recommendations, Admin, NotFound)
• contexts/ – React Context providers (AuthContext)
• services/ – API abstraction layers (authService.ts, movieService.ts)
• data/ – local data source (merged_movie_data.csv)
• utils/ – helpers and validators
• types/ – shared TypeScript definitions
• index.html, App.tsx, main.tsx – application entrypoint
• config files – Vite, ESLint, Tailwind, tsconfig
Final advice
• Every “lane” in the data flow: user input, UI rendering, service calls, data retrieval, and error handling (ErrorBoundary).
• Don’t forget static assets served from public/.