Git Product home page Git Product logo

backbone-counter's Introduction

backbone-counter

A very (very) simple counter app using backbone.js

Overview

The purpose of this application was to model something very simple in Backbone.js, to get a better understanding of how it works. The app displays a list of counters, allowing you to add a new counter to the page, or remove and existing counter. Each counter keeps track of it's count, and the user can increment and decrement the count. That's pretty much it :)

Technical Implementation Details

This application was built using Backbone.js, with Underscore.js templates. The templates (and for that matter, all view aspects) are stored in the index.html file. A Backbone router was used, but was not necessary, and sends all requests to a no-op function. Event interaction is handled by the views, which directly manipulate the counter model(s). The model data is stored in memory, not using a backend server or local storage. An app-view was created to manage creating and deleting the individual counter views.

More information on the details of this application can be found here:
http://blog.dylants.com/2013/01/10/my-introduction-to-backbone-js-backbone-counter/

Getting Started

A running version of this application is hosted on GitHub here:
http://dylants.github.com/backbone-counter/

You can also clone the project, and host the index.html file locally. All JavaScript files are included and loaded within the index file.

backbone-counter's People

Contributors

dylants avatar

Watchers

 avatar  avatar  avatar

Forkers

usmanaqadri

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.