Skip to content

mariamisaeva/MovieApp

Repository files navigation

My Movie Engine

API-Project

Introduction

This project is a Movie App recommendation application. It allows users to search movies by title or genre, and retrieve information about the movies that match their query. The API used is http://www.omdbapi.com/

Getting Started

  1. Clone or Download the repository: git clone https://github.com/mariamisaeva/MovieApp.git
  2. Navigate into the directory: cd MovieApp
  3. Open the index.html file in your preferred web browser.
  4. Enter a keyword in the search input and click the "Search" button to retrieve movie results.
  5. Alternatively, you can open http://localhost in your browser to see the app running.

Adding Your API Key

Follow these steps to add your API key to the code:

  1. Get an API key from OMDb API.
  2. Open the index.html file in your browser.
  3. Enter your own API key in prompt box.
  4. Press Ok.

How It Works

Searches the movie database for movies matching the given search term. Returns an array of movie objects with properties : title, poster, year, and type. with the total number of results. If no matches are found, not relevant input, or no input, returns an error message. All responses return JSON data.

Features

  • Dynamic rendering of movie search results.
  • Display of total search results.
  • Error handling for unsuccessful API calls.

Screenshots

Screenshot 2024-01-20 at 21 51 28 Screenshot 2024-01-20 at 21 53 49 Screenshot 2024-01-20 at 21 54 04

About

API-Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published