Coder Social home page Coder Social logo

express-apis-omdb's Introduction

#Express with APIs - OMDB

We'll be creating an app that connects to OMDB, a public movie API.

##Note

Fork and clone this repository and setup a basic Express app. Make sure to finish the main requirements for this project, because we'll be adding to the assignment over the next week.

##Requirements

  1. User goes to home page that has a search form field for a movie.
  2. The search form will take the user to a search results page of movie listings on the route.
  3. Each movie link should click into a view with detailed information about the movie.

##How to get Started

  1. Create a form that sends a query and gets results from the OMDB API. Read over the documentation to see the endpoints needed.

The next step is to turn the movie results into links that will go to a new route, and make an additional API requests for additional movie details.

  1. From the search results page, we notice along with every movie entry there is a IMDBid. Have each movie link to a route like /movie/tt234323. Take the parameter from that url and make an additional API call to retrieve movie details related to that imdbID

  2. Create a new route that takes the paramaters of theimdbIDin the url on a movies controller. The route you will need to make will look like /movies/:imdbId. Using the data from req.params make a second api call to the api to get the movie details.

##Tips

  • The data object we get back in a request callback, is a string of the data. Use JSON.parse(data) to turn that data back into an object.

  • The movie api returns an array of movies inside the Search Key.

  • Example Search URL

  • Example Movie Detail URL

  • Make sure you do the res.render inside the callback function of the request.

##Bonus

  • Add stars images to reflect the imdb ratings
  • Figure out what parameters are need to access the rotten tomato listings.

express-apis-omdb's People

Contributors

bhague1281 avatar k-buffum avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.