Search code examples
jqueryasp.net-mvcbackbone.jsasp.net-mvc-2todomvc

TodoMVC app using Backbone.js and SQL Server instead of backbone-localstorage.js


I am learning backbone.js, I have gone through these series of tutorials before : Link1, Link2

Now I am going through TodoMVC using Backbone.js and you can see the code here.

What I want to do

As you can see in the example, the example uses backbone-localstorage.js, now instead of this I want to implement the same thing using ASP.NET MVC, where the values will be stored in a SQL Server database.

I am really confused on how to start about on this, can anyone please guide me on how can I do this.


Solution

  • I recommend you look at ServiceStack. They also have a TODO app example. ServiceStack and Backbone.js go well together. Once you're on the server, storing data wherever you like, shouldn't be a problem. The example is included in this Nuget package

    Install-Package ServiceStack.Host.Mvc