Сообщения за Октябрь, 2013

Backbone.JS + ASP.NET WebAPI

IntroductionBackbone.js is a powerful JS library built on top of Underscore.js library. It enables to create one page javascript applications using MVC pattern.

Backbone.js could be downloaded from http://backbonejs.org/, also there exists plenty of examples and tutorials.

ASP.NET WebAPI is newest Microsoft framework, which is a part  of ASP.NET MVC 4. It provides developers with abilitity to quickly create REST services, which could be available from any device and client.

More information about WebAPI could be found on http://www.asp.net/web-api/overview

In this post I would like to describe how to create basic Backbone.js application, which is using WebAPI as a storage.

Step 1 Create WebAPI REST service

First lets create a REST service which will provide and modify all data in our app.

Our service will be able to provide a list of skills, which we'll be defined by id, title and description. Also service will be able to add new skill to list.

We'll create new WebAPI projec…