IntroductionKnockout.js

Let’s start where we left off. Go ahead and download the source code of the previous part, unzip it and open it up in Visual Studio.

Last time we retrieved a list of timesheets, pushed it into an observable array and used declarative bindings (data-bind) to associate DOM elements with our view model. In other words we databound it to a table. Knockout then automagically rendered a row for each timesheet in the array.

Let’s proceed with the next step in our little CRUD application and add support for creating new timesheets.

Read the rest of this entry »

Advertisements

IntroductionKnockout.js

The last two posts were introductory posts to Twitter Bootstrap and MongoDB. Let’s combine these two technologies with ASP.NET MVC 4, Web API and Knockout.js to create a simple Single-page Application.

The goal is to fit all the necessary code – HTML, JavaScript and CSS on one single page, hence the name. This results in a more fluid user experience. We will not be doing any full page reloads or transfer control to another page. All interaction with the server will consist solely out lightweight JSON communication.

Read the rest of this entry »

An Introduction To MongoDB

September 29, 2012

IntroductionMongoDB

Next up, after GitHub and Bootstrap, in the session I presented last month during a company trip, is MongoDB.

MongoDB is a NoSQL database, instead of storing data in tables, it stores structured data in JSON-like documents, also known as BSON (Binary JSON).

This article isn’t about NoSQL, it just shows you how you can quickly set up MongoDB and work with it in a .NET environment. Let’s walk through the necessary steps to get MongoDB up and running.

Read the rest of this entry »