mvcoffee.js is the client-side portion of the MVCoffee suite of tools. It provides a CoffeeScript Model-View-Controller framework that makes it easy to:
- work with model data in an Object-Relational Mapping (ORM) very similar to Rails’ Active Record. It even mimics the Ruby idiom of “Class Macro” methods for defining validations and associations.
- detect when the cached model data is likely to be stale and refresh it
- rerender portions of an html page that display model data
- keep data cached on the client for an extended period of time without resorting to a Single Page Application approach
Note, despite the client-side library being referred to as “
mvcoffee.js” to distinguish it from the other portions of the broader MVCoffee framework, the github source is named “
mvcoffee” because it pre-dates the framework evolving into a suite of tools in different languages. Just to clear that up…