Code Monkey home page Code Monkey logo

apis_and_json_with_sinatra's Introduction

apis_and_json_with_sinatra

A lab to practice calling apis and parsing the json that is returned.

Sinatra OMDB Lab (1/15/2014)

The goal of the lab is to get comfortable with sinatra, api calls and json. By the end of the lab, you should have an app that uses routes, forms, and an api call that returns json.

Instructions

Create a movie searching application using the OMDB json api: http://www.omdbapi.com/. For the lab, you will be calling the omdb api using the 's' parameter and the 'i' parameter.

  1. Phase 1 - Create a simple search, that presents a form to the user to search for movies. The form should be routed to a page at '/' and the results should be routed to a post at '/result'. The results page should list all of the movies found by the search and the year the movie was made.

  2. Phase 2 - On the results page, turn each movie and year string into a link. The link should go to another page called '/poster/[imdb_id]' On this page the poster of the imdb id given in the url should be displayed

  3. Phase 3 (Extra) - On the results page, display the movies in sorted order by year.

apis_and_json_with_sinatra's People

Contributors

darrenmwong avatar tigarcia avatar

Watchers

 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.