140 likes | 277 Views
Sponsor. Single Page Applications with ASP.NET MVC4. Roberto Hernandez-Pou Managing Consultant Excella Consulting @ hernandezrobert http://www.overridethis.com. Table of Contents. 1 . What is an SPA Application? Why should I care? Steve Sanderson’s opinion. 2 . What happened?
E N D
Single Page Applications with ASP.NET MVC4 Roberto Hernandez-Pou Managing Consultant ExcellaConsulting @hernandezrobert http://www.overridethis.com Excella Consulting – http://www.excella.com
Table of Contents 1. What is an SPA Application? Why should I care? Steve Sanderson’s opinion 2. What happened? A funny story around what happened to the ASP.NET MVC SPA Templates on MVC4. 2. Architecture of a Single Page Application A fun story around what happened to the ASP.NET MVC SPA Templates on MVC4. 3. Walkthrough BigShelf Sample application based on MVC4 Beta 4. Demos Writing a SPA application the hard way Excella Consulting – http://www.excella.com
What Happened? http://www.asp.net/single-page-application Excella Consulting – http://www.excella.com
What is a Single Page Application? Excella Consulting – http://www.excella.com Rich, Responsive applications combining the best of web and desktop, built with HTML5 and JavaScript*. * and nothing fancy Steve Sanderson http://www.stevesanderson.com
Samples out there? Excella Consulting – http://www.excella.com
Why should I care? Excella Consulting – http://www.excella.com “It’s no longer good enough to build web apps around full page loads and then “progressively enhance” them to behave more dynamically. Building apps which are fast, responsive and modern require you to completely rethink your approach.” Quoted onhttp://www.stevesanderson.com From http://throneofjs.com/
Benefits? 1. Great user experience 2. Runs on any device 3. 4. Can work offline App-Store deployable Excella Consulting – http://www.excella.com
Architecture Challenges Excella Consulting – http://www.excella.com Organization (MV* Pattern) Presentation (HTML,CSS, and JS) Navigation APIs (URL Routing) Data Storage (Local or Remote)
Architecture Web UI HTML/CSS/JS Visible UIHTML/CSS Data services JSON/XML Application layerJavaScript Navigation APIs Data access layerJavaScript Local storage Client Server Excella Consulting – http://www.excella.com
Architecture Diagram / Frameworks MVC, WEBFORMS, WEBMATRIX Web UI HTML/CSS/JS Visible UIHTML/CSS KNOCKOUTJS HISTORY.JS WEB API Data services JSON/XML Application layerJavaScript Navigation APIs UPSHOT.JS Data access layerJavaScript HTML5 Local storage Client Server Excella Consulting – http://www.excella.com
All together! Server WebApi 1 Data jQuery 2 4 5 UI Knockout 3 Navigation History.js Demos Excella Consulting – http://www.excella.com
Resources 1. http://www.asp.net/single-page-applications 2. http://www.knockoutjs.com 3. 4. http://www.stevesanderson.net https://github.com/balupton/History.js/ Excella Consulting – http://www.excella.com
Thank You! 1. Blog: http://www.overridethis.com 2. Email: roberto.hernandez@excella.com 3. 4. @hernandezrobert https://bitbucket.org/rhp_74/overridethis.spademo Excella Consulting – http://www.excella.com