Welcome to the Movie Search App! This React application allows users to search for movies using the TMDB API, view search results, and access additional details about each selected movie.
You can check out a live demo of the Movie Search App here Demo Link.
- The application features a clean and user-friendly interface.
- A search bar allows users to enter movie queries.
- Visually appealing display of search results with movie titles and posters.
- Integration with the TMDB API for fetching movie search results.
- Displaying at least 10 search results at a time.
- Users can select a movie from the search results to view additional details.
- Additional details include the movie's overview, release date, and average rating.
- Graceful handling of errors, including meaningful error messages when API calls fail or there are no search results.
- Clean and maintainable code organized following React best practices.
- Utilization of functional components and hooks for code modularity.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/movie-search-app.git
-
Navigate to the project directory:
cd movie-search-app
-
Install dependencies:
npm install
-
Create a
.env
file in the project root and add your TMDB API key:REACT_APP_API_KEY=YOUR_TMDB_API_KEY
-
Start the development server:
npm start
-
Open your browser and visit http://localhost:3000 to access the app.
- Enter a movie query in the search bar.
- Real-time search results will be displayed as you type.
- Click on a movie from the search results to view additional details.
This application integrates with the TMDB API for fetching movie data. Ensure you have an API key from TMDB and add it to your .env
file.
The project follows a clean and maintainable code structure using React best practices. Functional components and hooks are used for modularity.
Unit tests are written for components and key functions using the Jest and React Testing Library framework. To run tests, use the following command:
npm test