Git Product home page Git Product logo

omdb_with_database's Introduction

#OMDB TAKE 3

###Assignment


For this assignment you will be creating an OMDB app one more time.

However, this time, instead of using the OMDB API, you will be creating your own database of movies.

You have been given a sinatra app with code to get you going, and methods to help you setup your database.

You have also been given a working feature to add movies to the databse. There is a route /movies/new which renders a form to input new movie data. And a route to send this form to, and save the info to your database.

###Phase One


Add a search form

  1. Have your root path (-> "/"), render an erb page
  2. Add a form to search for a movie on this page

Hint: Remember to ask yourself, "where should this form go?"

###Phase Two


Search for a movie in your database

  1. Add a route to send your search form to
  2. Add code that will seach for movies based on the title your user searched for
  3. Add a view page to display these results

Hint: Remember, that the results will be returned in an array.

###Phase Three


Add a movies detail feature.
When your users click on a title it should take them to a page with details just for that movie.

  1. Add a new route for your details link to go to
  2. Add some code in here that will look up a movie by it's id
  3. Add a view page to display your movie details

###Phase Four


Add Actors

  1. In your psql console (from the terminal), make sure you have actors, and that they can be joined to movies
  2. In your movie details route, lookup a movie, and the actors associted with that movie.
  3. Display information for the movie and the actors in the movie details page.

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.