A simple web-based movie search application built with HTML, Bootstrap 5, and Vanilla JavaScript (Fetch API).
This project integrates with the OMDb API to allow users to search for movies, view movie cards, and see detailed movie information inside a modal box.
Web Movie DB is designed as a lightweight movie database search engine.
Users can search movies by keyword, browse results in card format, and view detailed information such as genre, director, actors, and plot using a modal dialog.
The application demonstrates:
- Modern front-end development with Bootstrap 5.
- API request handling using Fetch API (without jQuery).
- Error handling for failed API requests and invalid input.
- HTML5 β structure and layout.
- Bootstrap 5 β responsive design, cards, modal box, and components.
- JavaScript (ES6) β functionality and event handling.
- Fetch API β for consuming data from OMDb API.
- OMDb API β data source for movies (title, year, genre, director, etc.).
-
Search Movie
- Users can search by movie title keyword.
- Real-time fetch to OMDb API with error handling.
-
Movie Cards Display
- Shows movie poster, title, year of release.
- Responsive grid system using Bootstrap.
-
Movie Details Modal
- Clicking Show Details opens a Bootstrap modal.
- Displays extended info:
- Poster
- Title & Year
- Genre
- Director
- Production
- Actors
- Rated (content rating)
- Language
- Plot
-
Error Handling
- Alerts user when:
- The keyword is empty.
- Movie not found.
- API connection error.
- Alerts user when:
-
Responsive Layout
- Mobile-friendly with Bootstrap grid system.
- Clone or download this repository.
git clone https://github.com/username/web-movie-db.git
- Open the project folder and edit script.js if needed (replace API key).
- Open index.html directly in your browser.
- Search for any movie title and explore the details!
This project uses OMDb API.
Replace the demo API key in script.js if you have your own:
const API_KEY = "your_api_key_here";