Github example to come on using knockout, upshot, nodejs, and mongo to build a demo spa.
Upshot is powerful DAL (Data Access Layer) javascript library. It knows how to talk to server or local data storage. It knows how to the interprete data from the server, understanding the metadata for things like validation and association. It knows how to track changes and synchronize those data to sever.
In case of server data storage, upshot can talk to json/xml data services like web api. And in case of local storage, upshot can use html5 local storage. There is even possibility to use local storage when there is no connection with server, and synchronize all changes to server as soon as server is available. This is the great library that makes building SPA application as easy as building normal web application.
If bufferChanges attribute is set to true, Html.UpshotContext(
This can also perform query against data like sorting, filtering etc.. Moreover, it can perform query against remote data as well as local data, so you don´t have to go to remote if you just want to filter over data that is already in the local.
Knockout video that led me to upshot. http://www.infoq.com/presentations/Knockoutjs?utm_source=infoqEmail&utm_medium=WeeklyNL_EditorialContent&utm_campaign=103012news
Great tutorial on upshot.js http://bartjolling.blogspot.nl/2012/04/building-single-page-apps-with-aspnet.html
Counter part http://datajs.codeplex.com/
https://github.com/SteveSanderson
http://code.msdn.microsoft.com/ASPNET-Single-Page-d6d7172c/sourcecode?fileId=49859&pathId=34165245
http://ajitdhungana.blogspot.com/2012/02/knockout-upshot-nav.html
No comments:
Post a Comment