A React application to search for movies and display detailed information using the OMDB API.
- Project Demo
- Features
- Installation
- Usage
- Project Structure
- Components
- APIs Used
- Styling
- Links
- License
Watch the demo of the project
- Search for movies and web series using the OMDB API.
- Display a list of search results with movie posters and titles.
- View detailed information about a selected movie.
- Responsive design with a modern UI.
- Skeleton loaders for a better user experience during data fetching.
-
Clone the repository:
git clone https://github.com/yourusername/movie-search-app.git cd movie-search-app -
Install the dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000.
- Use the search bar in the navigation bar to search for movies or web series.
- Select a movie from the search results to view detailed information.
movie-search-app/
βββ public/
β βββ index.html
β βββ ...
βββ src/
β βββ components/
β β βββ Loader.jsx
β β βββ MovieCard.jsx
β β βββ MovieDetail.jsx
β β βββ MoviesHome.jsx
β β βββ MoviesNavbar.jsx
β β βββ SkeletonLoader.jsx
β βββ App.js
β βββ App.css
β βββ index.js
β βββ index.css
β βββ ...
βββ .gitignore
βββ package.json
βββ README.md
βββ ...
- Loader.jsx: Displays a loading spinner while data is being fetched.
- MovieCard.jsx: Represents a single movie card with an image, title, and year. It also includes a skeleton loader for better user experience.
- MovieDetail.jsx: Shows detailed information about a selected movie.
- MoviesHome.jsx: The main component that handles the search functionality and displays the list of movie cards.
- MoviesNavbar.jsx: The navigation bar component with a search bar.
- SkeletonLoader.jsx: A skeleton loader component used to indicate loading state.
- OMDB API: Used to fetch movie data including titles, posters, and detailed information.
- Tailwind CSS: Used for styling the components and ensuring a responsive design.
- Custom CSS: Additional custom styles defined in
App.cssandindex.css.
- Solution URL : GitHub Repository
- Live Site URL : movie-search-app
- Author : Pushkar Modi