This project is a movie search application built with React. The main goal of this homework is to practice working with React Router, HTTP requests, query parameters, and lazy-loaded routes.
- GitHub Repository: https://github.com/YOUR_USERNAME/goit-react-hw-05
- Live Demo (Vercel): https://YOUR_PROJECT.vercel.app
- React
- Vite
- React Router DOM
- Axios
- TMDB API
- CSS Modules
The application allows users to search for movies and view detailed information about each movie. Data is fetched from the TMDB API.
Main features include:
- Trending movies on the home page
- Movie search with query parameters
- Movie details page
- Nested routes for cast and reviews
- Go back navigation preserving previous location
- Lazy-loaded routes using React.lazy and Suspense
/— Home page with trending movies/movies— Movie search page/movies/:movieId— Movie details page/movies/:movieId/cast— Movie cast/movies/:movieId/reviews— Movie reviews*— Not found page
src/ ├── components/ │ ├── MovieCast │ ├── MovieList │ ├── MovieReviews │ └── Navigation ├── pages/ │ ├── HomePage │ ├── MoviesPage │ ├── MovieDetailsPage │ └── NotFoundPage ├── services/ │ └── tmdb-api.js ├── App.jsx └── main.jsx
This homework focuses on understanding client-side routing, working with URL search parameters, nested routes, and handling asynchronous API requests in React.
The project fully meets all homework requirements and runs without console errors or warnings.
Happy coding! 🚀