Giter Site home page Giter Site logo

web-js-oo-task-list-web-0616's Introduction

JS Test Driven Task List

Instructions:

Create an object oriented task list. You're going to need to build a basic all front end app. There will be no persistence. However, you will need two models, one for List(s) and Task(s).

These models will:

  • need autoincrementing IDs as well as some "class" methods.
  • talk to their matching controllers, ListController and TaskController.
  • will use their "ids" to set data properties, id properties, and value properties.

The controllers will:

  • interact with the DOM (think jQuery controllers that make instances to help the views).
  • be adding the elements themselves to the DOM instead of the views.
  • need to call the model's build method, which returns a string of html.

Underscore and jQuery are loaded for you.

##Requirements

  • The List constructor keep track of instances with the an all property
    • The list instance will get an id from the length of the all array
  • List instances keeps track of their own task instances with the tasks property
    • Tasks are assigned an id from their position in the tasks array
  • Model instances are responsible for creating the strings that get converted to HTML elements
  • Model instances are responsible for appending said HTML elements to the DOM via the model's instance method build
  • The controllers are responsible for creating new instances of their corresponding models from form inputs
  • The controllers are responsible for triggering those instances to append themselves to the DOM via the model's instance method build
  • The controller is responsible for deleting instances elements from the DOM
    • Tasks only need to be deleted from their list
    • When tasks are deleted they are replaced in their list's tasks array with null
    • Lists need to be deleted from div#lists and from select

##Example

For comparison here is a live example of the finished app linked here.

Resources

View JS Test Driven Task List on Learn.co and start learning to code for free.

web-js-oo-task-list-web-0616's People

Contributors

tsiege avatar jongrover avatar fs-lms-test-bot avatar deniznida avatar irmiller22 avatar mrmitchboyer avatar sarogers avatar fislabstest avatar

Watchers

James Cloos 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.