Giter Club home page Giter Club logo

todomvc's Introduction

BackboneDiorama TodoMVC Example

This is a todo app built using BackboneDiorama. This isn't quite a full TodoMVC app as specified by their site (yet!), but it should help you get started with Diorama.

The app is running on github pages:

http://adammulligan.github.io/TodoMVC/

Framework

BackboneDiorama is everything you need to build client-side web applications. Optimised for developer happiness, it builds on the components of Backbone.js and aims to be the easiest and the fastest way to build for the browser.

  • diorama new projectName builds you a new project with:
    • Logical project structure for Backbone components
    • Coffeescript concatenation and compilation setup
    • Backbone.js+deps and Handlebars templating included and ready for use
  • diorama generate <lots-of-stuff> - Rails-style code generators which provide convention and structure to your projects, assist you with proven patterns and allow you to rapidly prototype. Run diorama generate for the full list.
  • Additional lightweight libraries to plug the gaps in Backbone.js:
  • New to Backbone.js? The built in conventions and patterns mean there's no easier way to get started.
  • Written entirely in and for Coffeescript, for clarity and elegance of code.

Learn more at the project homepage

Implementation

The entry point to the application is through the TasksController, which is in src/controllers/tasks_controller.coffee. Every object has been generated using diorama generate, then adapted.

This deviates from the TodoMVC spec a fair bit, mostly in the interests of getting a first version up and running. Longer term, we're aiming to get it fully compliant.

Running

You will need backbone-diorama installed on your machine:

npm install -g backbone-diorama

This gives you the diorama command. Use diorama compile watch (in the project directory) to auto-compile your coffeescripts to js/application.js. Then, open index.html to start the app.

Check the project homepage for more setup details.

todomvc's People

Contributors

adammulligan avatar th3james avatar

Watchers

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