Giter VIP home page Giter VIP logo

http-movies-stretch-assignment's Introduction

HTTP Movies - Stretch Assignment

  • The good news here is that you've seen this all before!
  • Everything should be working the way you previously had built this project, with one major difference, we are no longer sending out HTTP requests for you.
  • You are now tasked to fix this very problem.

Instructions

  • Fork this repository, then clone your fork.
  • Run yarn to download dependencies.
  • Run the server using yarn start or node server.js.
  • In a separate terminal cd into the client folder and run yarn install to download dependencies.
  • Still inside the client folder run yarn start to run the client application.

Part 1:

  • Notice that in the MoviesList component our componentDidMount is missing it's guts.
  • Without peeking back at the original assignment, fill this in to retrieve the list of movies once again.
  • Be sure to set them on state so that your component can render the list.

Part 2:

  • Now that we have our movies rendering to the page, head over to the Movie component.
  • Notice that our fetchMovie function is no longer making any HTTP Request. Fix it.
  • Once again no peeking. Doing this on your own will help you out.

Stretch Problem

  • Build out a form for adding a movie to your movie list.
  • You'll need a new route potentially /movie/add and you'll need to mount a new component potentially MovieCreate
  • Make your styles match the rest of the app.
  • Consider all of the following data:
{
  id: 5,
  title: 'Tombstone',
  director: 'George P. Cosmatos',
  metascore: 89,
  stars: ['Kurt Russell', 'Bill Paxton', 'Sam Elliot'],
}
  • The information found here is what you would need to pull off of a form from an input
  • NOTE The id field is auto generated on the server, so you don't need to send an id up with your information.

http-movies-stretch-assignment's People

Contributors

indifferentghost avatar luishrd avatar ryan-hamblin avatar seanchen1991 avatar sunjieming avatar tetondan 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.