Up and running quickly with Thorax and backbone.localStorage.js
Add backbone.localStorage.js to public folder
-
In index.html just before the closing body tag and after
<script type="text/javascript" src="/modules/base.js"></script>
add<script src="backbone.localStorage.js"></script>
-
When creating a collection specify
localStorage: new Backbone.LocalStorage("collection-name")
-
Use create(), save(), fetch(), destroy() etc. on collection and models
-
???
-
Profit!