Movie4U is a web application that allows users to search for movies and view popular movie listings using The Movie Database (TMDb) API.
- Search for movies by title.
- View popular movies on page load.
- Responsive design for mobile and desktop.
- HTML
- CSS (with responsive design)
- JavaScript (with async/await for API calls)
- TMDb API
- Clone the repository:
git clone https://github.com/VirendraSah/Movie4U.git
- Navigate to the project directory:
cd Movie4U
- Open
index.html
in your browser.
- On page load, popular movies are displayed.
- Use the search bar to find movies by title.
- The app dynamically loads and displays search results.
index.html
- The main HTML file.style.css
- Styles for the app.responsive.css
- Responsive design rules.script.js
- Handles fetching movie data and updating the UI.images/
- (Optional) Directory for storing image assets.
- Fetches popular movies from:
https://api.themoviedb.org/3/movie/popular?api_key=YOUR_API_KEY&language=hi-IN&page=2
- Searches movies by title from:
Replace
https://api.themoviedb.org/3/search/movie?&api_key=YOUR_API_KEY&page=1&query=SEARCH_TEXT
YOUR_API_KEY
with your TMDb API key.
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Make your changes and commit:
git commit -m 'Add new feature'
- Push to your fork and create a pull request.
This project is licensed under the MIT License.