GithubHelp home page GithubHelp logo

more-chores-review's Introduction

More Chores

What better way to keep track of your chores than this? Here you’re going to be creating Chore Cards, which contain the chore id, title, duration and priority.

Initialize Server

Using json-server: to install: npm install -g json-server to start server: json-server --watch db.json

Deliverables:

Chores from the server should be rendered onto the page when it loads User should be able to create a new Chore Card by submitting the Form A card should have a div tag with a class of “chore-card”, a button tag with class ‘delete-button’, an h3 tag with the title, a p tag for the Duration, and an input tag for the priority (which should show what the priority of the chore currently is). User should be able to delete Chore Card User should be able to update the priority on the card in the input tag (using Event Listener ‘blur’)

Example Chore Card

<div class=’chore-card’>
<button class='delete-button' data-id=${chore.id}>x</button>
<h3> ${chore.title} </h3>
<p> Duration: ${chore.duration} </p>
<input value=’${chore.priority}/>
</div>

Routes

#=> Getting all Chores
GET /chores

#=> Creating a Chore
POST /chores

headers: {
‘Content-Type’: ‘application/json’,  
Accept: ‘application/json’
             }

#=> Deleting a Chore
DELETE /chores/:id

headers: {
‘Content-Type’: ‘application/json’,  
Accept: ‘application/json’
             }

more-chores-review's People

Contributors

perpepajn25 avatar teasacura 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.