A sleek and modern movie search app built using React.js and the OMDb API.
Search your favorite movies instantly and view posters, release years, and more — all in a clean, responsive UI!
- 🔍 Real-time movie search using OMDb API
- 🎥 Display posters, titles, and years in a card layout
- ❌ Shows "No Movies Found" if nothing matches
- ⚡ Fully responsive layout – mobile friendly
- 🧠 Built with functional components and React Hooks
- 📦 API Integration using
fetch()
- React.js – UI & component logic
- CSS – Custom styling
- OMDb API – Movie data source
- Type a movie name into the search bar
- Click the Search icon or press Enter
- The app fetches matching movies from the OMDb API
- Results are displayed in a responsive card layout
- If no movies are found, an error message is shown
src/ ├── App.jsx ├── MovieCard.jsx ├── App.css ├── index.js ├── search.svg
git clone https://github.com/chamod-malindu/MovieLand-my-first-react-app.git
cd your-repo-namenpm install- Open the file:src/App.jsx
- Replace this line:const API_URL = 'http://www.omdbapi.com/?apikey=YOUR_API_KEY';
- You can get a free API key from: https://www.omdbapi.com/apikey.aspx
npm start