GithubHelp home page GithubHelp logo

moviesearch's Introduction

Purpose

I have been tasked with creating a simple web app that will utilize a common API to retrieve and resent data in a meaningful way.

Requirements

  • Create a web app in any framework of your choosing (react, angular, vue, etc)

  • Have the browser client app hit against IMDB APIs (there are several “free” options online and may require a key)

  • Display a list of at least 5 movies of any kind and display: Title, Year, and some other piece of meta-information (e.g. Metascore or Genre)

  • Sort the list of movies by at least two different fields if not all of them

  • Click on the title or row of each movie to get to another page where more metadata on the movie is displayed. Any additional data you decide to display on the details page for the movie is fine, but it must include movie poster image.

  • Consider menu navigation when hitting back from display details to list

  • Deliver solution as runnable code in a public repository - GitHub works fine for this

  • Include any build instructions if necessary (node, npm, webpack, etc)

  • Don’t get too hung-up on UI/design though bonus points if it looks half-way decent

Wireframe

picture

Build Instructions

  1. obtaining this repository from github
  2. Install dependencies npm install
  3. start local development App npm start

Front End Framework

My Front-End framework of choice is React. However, eventhough the framework has been set up, I app does not yet utilize React components. I intend to followup and make this happen.

The following commands were executed to create my React App:

npx create-react-app movieSearch
cd movieSearch
npm start

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

API

The Open Movie Database (OMDb) API is used to return data in JSON from the Internet Movie Database (IMDb). This OMDb API allows users to search for movies by title, IMDb identifier, date released, season or episode, among other information. See the API documentation for more info. (http://www.omdbapi.com/)

Note that though this API has a free version, an API key is required.

Axios

This promised-based HTTP client was used to make API calls to IMDb.

sorttable

https://www.kryogenix.org/code/browser/sorttable/

  1. obtain javascript Library npm install --save sorttable

  2. Reference the library: import 'sorttable';

  3. Add class to table level:

  1. Add styling
/* Sortable tables */
table.sortable thead {
    background-color:#eee;
    color:#666666;
    font-weight: bold;
    cursor: default;
}

moviesearch's People

Contributors

codakhan 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.