asp.net - architecting single page applications with knockout.js

48
Architecting Single Page Application with Knockout.js @d_danailov

Upload: dimitar-danailov

Post on 16-Jul-2015

190 views

Category:

Software


0 download

TRANSCRIPT

Page 1: ASP.NET - Architecting single page applications with knockout.js

Architecting Single Page Application with Knockout.js

@d_danailov

Page 4: ASP.NET - Architecting single page applications with knockout.js
Page 5: ASP.NET - Architecting single page applications with knockout.js
Page 6: ASP.NET - Architecting single page applications with knockout.js
Page 7: ASP.NET - Architecting single page applications with knockout.js

Topics Today

● What is Single Page Application● Steve Sanderson● Yeoman overview● Bower overview● Build System(Grunt and Gulp)● HTTP servers● Karma● Jasmine

Page 8: ASP.NET - Architecting single page applications with knockout.js

Single Page Application

A single-page application (SPA), also known as single-page interface (SPI), is a web application or web site that fits on a single web page with the goal of providing a more fluid user experience akin to a desktop application.

http://en.wikipedia.org/wiki/Single-page_application

Page 11: ASP.NET - Architecting single page applications with knockout.js
Page 12: ASP.NET - Architecting single page applications with knockout.js

Right now I’m working as a developer for Microsoft in the team that brings you the ASP.NET technology stack, IIS, and

other web things.Previously I developed .NET software as a

contractor/consultant for clients in Bristol and beyond, plus wrote some books for Apress, such as Pro ASP.NET MVC

Framework.From time to time, I get to speak at user groups and

conferences, and recently have been running a bunch of training courses on topics such as C#, SQL Server, and of

course ASP.NET MVC.

Steve Sanderson

http://blog.stevensanderson.com/about

Page 13: ASP.NET - Architecting single page applications with knockout.js

2010

Page 14: ASP.NET - Architecting single page applications with knockout.js
Page 16: ASP.NET - Architecting single page applications with knockout.js
Page 17: ASP.NET - Architecting single page applications with knockout.js

generator-ko

Page 18: ASP.NET - Architecting single page applications with knockout.js
Page 20: ASP.NET - Architecting single page applications with knockout.js

npm install -g yo

Page 21: ASP.NET - Architecting single page applications with knockout.js

npm install -g generator-ko

Page 22: ASP.NET - Architecting single page applications with knockout.js
Page 24: ASP.NET - Architecting single page applications with knockout.js

npm install -g bower

Page 25: ASP.NET - Architecting single page applications with knockout.js

2012

Page 26: ASP.NET - Architecting single page applications with knockout.js
Page 28: ASP.NET - Architecting single page applications with knockout.js
Page 29: ASP.NET - Architecting single page applications with knockout.js

npm install -g grunt-cli

Page 30: ASP.NET - Architecting single page applications with knockout.js

npm install grunt --save-dev

Page 31: ASP.NET - Architecting single page applications with knockout.js

Grunt Plugins

Page 32: ASP.NET - Architecting single page applications with knockout.js

npm install grunt-contrib-jshint --save-dev

Validate files with JSHint.

Page 33: ASP.NET - Architecting single page applications with knockout.js
Page 35: ASP.NET - Architecting single page applications with knockout.js
Page 36: ASP.NET - Architecting single page applications with knockout.js

npm install -g gulp

Page 37: ASP.NET - Architecting single page applications with knockout.js

npm install gulp --save-dev

Page 38: ASP.NET - Architecting single page applications with knockout.js

Gulp Plugins

Page 39: ASP.NET - Architecting single page applications with knockout.js

npm install --save-dev gulp-uglify

Minify files with UglifyJS.

Page 40: ASP.NET - Architecting single page applications with knockout.js
Page 41: ASP.NET - Architecting single page applications with knockout.js
Page 42: ASP.NET - Architecting single page applications with knockout.js

npm install http-server -g

Page 43: ASP.NET - Architecting single page applications with knockout.js

http-server [path] [options]

Page 45: ASP.NET - Architecting single page applications with knockout.js
Page 47: ASP.NET - Architecting single page applications with knockout.js