How rajeev-bartwal/ai-movie-recommender-frontend works
This React frontend lets a user enter a movie mood or genre, request recommendations, and view returned movie titles with explanations. Home owns the request state and handles loading, errors, and results; the API client supplies the backend endpoint. The README also describes a responsive, Netflix-inspired recommendation UI. The backend implementation is outside this repository, and the sampled sources do not show its internals.
Main entry points: Home.jsx Recommendation page · api.js API client · App.jsx App entry · NavBar.jsx Navigation bar
Components 10
User experience
- App entry
src/App.jsx - Navigation bar
src/Components/NavBar.jsx - Intro banner
src/Components/Hero.jsx - Footer
src/Components/Footer.jsx
Recommendation flow
- Recommendation page
src/Pages/Home.jsx - Loading indicator
src/Components/Loader.jsx - Recommendation card
src/Components/MovieCard.jsx
Backend integration
- API client
src/Services/api.js - Recommendation backend
Other components
- Movie seeker
Connections 10
- Movie seeker → Recommendation page: submits prompt
src/Pages/Home.jsx - App entry → Recommendation page: renders
src/App.jsx - Recommendation page → Navigation bar: renders
src/Pages/Home.jsx - Recommendation page → Intro banner: renders
src/Pages/Home.jsx - Recommendation page → Footer: renders
src/Pages/Home.jsx - Recommendation page → Loading indicator: renders while loading
src/Pages/Home.jsx - Recommendation page → API client: requests recommendations
src/Pages/Home.jsx - API client → Recommendation backend: targets API
src/Services/api.js - API client → Recommendation page: returns response
src/Pages/Home.jsx - Recommendation page → Recommendation card: renders results
src/Pages/Home.jsx