Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

WDI Lab - April 8, 2013

Movies

You will be creating a movies app using Sinatra and the OMDB API.

Requirements

  • Ability to search for a movie by title
  • Ability to click on a search result to see detailed information about a movie including:
    • Title
    • Year
    • Rating
    • Runtime
    • Genre
    • Plot summary
    • Poster image
    • IMDB rating
    • Director(s)
    • Actors(s)

Make the landing page for movie titles beautiful, and incorporate some of the techniques we went over in class.

Using the OMDB API

Search for movies by title

http://www.omdbapi.com/?s=Star%20Wars

Return movie information by title and year (optional)

http://www.omdbapi.com/?t=True%20Grit&y=2010

Return movie information by imdbID

http://www.omdbapi.com/?i=tt1285016

Bonus
  • Add Rotten Tomatoes data to the movie page
  • Add "I'm Feeling Lucky" button to home page
  • Automatically redirect the user to the movie page if there's only one search result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.