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.
- Html Code – View Source
- js/models/todo.js
- js/collections/todos.js
- js/views/todos.js
- js/views/app.js
- js/routers/router.js
- js/app.js
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.
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