Giter Club home page Giter Club logo

phase-1-practice-cc-duck-manager's Introduction

Phase 1 Practice Code Challenge - Duck Manager

Ducks and Ducks and Ducks

Getting Started

Begin by opening the HTML with your browser of choice and running json-server --watch db.json.

For this challenge you'll be using the endpoint http://localhost:3000/ducks

Deliverable One

When the page loads, fetch the ducks and display each duck image in the #duck-nav. You may need to do something to make sure your script tag is working in the HTML first...

Deliverable Two

When a user clicks one of the duck images, it shows the duck's name, the image, and a likes button with the number of likes in the #duck-displaylike so:

<div id="duck-display">

  <h2>Duck Shrute</h2>

  <img src="https://cdn11.bigcommerce.com/s-nf2x4/images/stencil/1280x1280/products/246/9133/Computer-Geek-Rubber-Duck-Schanables-3__49617.1644583506.jpg?c=2" />

  <button>3 likes</button>

</div>

If another image is clicked in the #duck-nav it replaces the previous name, image, and button with the proper content.

Deliverable Three

When the likes button is clicked, it increments the number of likes displayed for that duck. Be sure that the button continues to read "X likes".

Deliverable Four

When the #new-duck-form is submitted, it generates a new duck image in the #duck-nav. When clicked, it acts like the other images in the #duck-nav and shows a name, image, and like button in the #duck-display. No persistence is needed. A duck starts with 0 likes.

phase-1-practice-cc-duck-manager's People

Contributors

brewchetta avatar sallykhazaal 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.