Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.46 KB

README.md

File metadata and controls

56 lines (35 loc) · 1.46 KB

TodoMVC Mozart

A TodoMVC example in the Mozart Framework.

Full details, downloads and documentation for Mozart can be found on The official website

Please see The official TodoMVC website for more details on the TodoMVC project.

Implementation

TodoMVC Mozart is implemented as a single controller and a set of views. A single model stores the todo items, persisted to LocalStorage by the built-in Mozart LocalStorage module.

app/controllers/

Dependencies

npm install

Run development server

grunt run

The development server runs at http://localhost:8080/

Testing

The application can be tested from the command line:

grunt test

The spec runner is also available at http://localhost:8080/specs/

Notes

The Mozart TodoMVC app demonstrates:

  • Views, Controllers, Models
  • Custom Controls
  • Binding
  • Hash Routing
  • LocalStorage persistence
  • Internationalization
  • Mozart Specs & BDD

Departures from specification:

  • The Mozart LocalStorage places each entity record in a seperate key for speed of access, this is a departure from the TodoMVC application spec which states a single key with a large data blob.
  • As this is a compiled example, a 'Full Source' link has been provided to the standalone todomvc-mozart Github project.