This web application allows users to search for movies, view movie details, and watch trailers.
- List of movies with poster images
- Trailer video component
- Watch trailer when a movie card is clicked
- Search box for searching movies
- Shortcut for quick search using Ctrl + K
- Error handling
- Commented code blocks
- Highly reusable components
- Performant code
- React.js
- HTML
- CSS
- Clone the repository.
- Install dependencies using
npm install. - Create a
.envfile in the root directory with the following content: REACT_APP_MOVIE_API_KEY=YOUR_API_KEY_HERE ReplaceYOUR_API_KEY_HEREwith your actual API key from The Movie Database. - Run the application using
npm start.
- Enter a movie title in the search box and press Enter or click the search button.
- Click on a movie card to view its details and watch the trailer.
The project is deployed and accessible at the given link.
- The app uses The Movie Database (TMDb) API to fetch movie data. You need to obtain an API key from TMDb and set it in the
.envfile as mentioned above.