Building Single Page Apps on the Microsoft Stack
- by Stephen.Walther
Thank you everyone who came to my talk last night on Building Single Page Apps on the Microsoft Stack. I’ve attached the slides and code samples below.
Here’s a quick summary of the talk. I argued that Single Page Apps are better than traditional Server Side Apps because:
Single Page Apps are Stateful – In a traditional server-side app, whenever you navigate to a new page, all of your previous state is lost. It is like rebooting your computer whenever you perform any action
In a Single Page App, Your Presentation Layer is Not Miles Away – In a traditional server-side app, because everything happens on the server, your presentation layer is separated from the user by space and time. In a Single Page App, the presentation layer is in the browser and not the server (which is the right place for a presentation layer).
A Single Page App Respects the Web – It is easier to take advantage of HTML5 and related standards when building a Single Page App.
Next, I recommended using the following four technologies when building a web application:
Knockout – This is how you create your presentation layer.
ASP.NET Web API – This is how you expose JSON data from your web server and perform server-side validation.
HTML5 – This is how you implement client-side validation.
Sammy – This is how you implement client-side routing and create a Single Page App with multiple virtual pages.
There are code samples in the download (look in the Samples folder) which demonstrate how all of these technologies work when building Single Page Apps.
Powerpoint
Sample Code