How yashkhatri012/recommendation_system works
Project type and purpose
• This is a single‐page application (SPA) frontend for a “recommendation_system,” built with React (TSX), Vite, and Tailwind CSS. Its purpose is to display, search, and explore movie recommendations via pages like HomePage, MovieDetailsPage, and SearchResultsPage. It currently uses local mock data (mockMovies.ts) but could integrate a backend API.
File structure
• Top‐level “frontend” directory contains:
• Config & tooling: .bolt/, vite.config.ts, tsconfig*.json, postcss.config.js, tailwind.config.js, eslint.config.js
• Entry point & HTML: index.html, main.tsx
• src/
– pages/ (HomePage.tsx, MovieDetailsPage.tsx, SearchResultsPage.tsx)
– components/ (UI building blocks: Navbar, HeroSection, MovieGrid, etc.)
– components/ui/ (primitive UI like Button, Badge, Rating)
– data/mockMovies.ts (stub data layer)
– styles/ (global, scrollbar.css)
– types/ (movie.ts)
• The pattern is React component–driven; pages orchestrate components; local data is imported directly.
Detail
• Break out each page and its core child components.
• TypeScript types guiding data contracts.
• Call out the Tailwind pipeline in the build step.