Code Monkey home page Code Monkey logo

071921-phase2-code-challenge-cast-bill's Introduction

Cast Bill: Vol 1

You're producing a new movie, but the only available actor is Bill Murray. Fortunately, you have access to many incarnations of Mr. Murray, so you can pick and choose which ones you will cast.

Instructions

For this project, you’ll be building out a React application that displays a list of available Bill Murrays, with some other features. Try your best to find the right places to insert code into the established code base.

After forking/cloning this repo:

  1. Run npm install in the project directory.
  2. Run npm run server, which will start the json server on port 8002.
  3. In a new terminal, run npm start, which will start up your react app on port 8000.

Make sure to open http://localhost:8002/bills in the browser to verify that your backend is working before you proceed!

These are the endpoints you might need:

  • GET: /bills
  • POST: /bills
  • DELETE: /bills/:id

Core Deliverables

As a user, I should be able to:

  • See profiles of all Bill Murrays rendered in BillCollection.
  • Add an individual Bill to the cast by clicking on it. The selected actor should render in the YourCast component. The instance of Bill Murray can be enlisted only once. The actor does not disappear from the BillCollection.
  • Remove an actor from the cast by clicking on it. The actor disappears from the YourCast component.
  • Discharge a Bill Murray from their agency forever, by clicking the blue button that says "FIRE". This removes the actor from both the BillCollection and YourCast components on the frontend.

All of the code to style the page has been written for you, meaning that you should be adding to the code rather than editing it; however, if your finished product has some styling issues, don't worry too much about it.

Bonus Deliverables

As a user, I should be able to:

  • Persist the cast info to the database by POSTing or PATCHing to the /bills endpoint, and DELETEing from the /bills/:id endpoint.
  • Choose if I want to cast a Bill into my movie or just see thier data. Clicking on the card should instead display a show view (billspecs) for that actor, which should replace BillCollection. billspecs should have two buttons: one to go back to the list view and another to cast that actor.
  • Sort actors by their health, salary, or rating. For this, create a new component, SortBar.

071921-phase2-code-challenge-cast-bill's People

Contributors

kmphelps avatar marcmajcher 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.