SlideShare a Scribd company logo
Node.js	
  for	
  .NET	
  Developers	
  
Speaker:	
  David	
  Neal	
  
Moderator:	
  Alvin	
  Ashcra<	
  
May	
  14,	
  2015	
  
May	
  14	
  –	
  15,	
  2015	
  
2015	
  
Microso<	
  
MVP	
  Virtual	
  
Conference	
  
Your Presenter
David	
  Neal	
  -­‐>	
  reverentgeek.com	
  -­‐>	
  @reverentgeek	
  
	
  
var	
  trustMe	
  =	
  {	
  
	
  	
  consumes:	
  ["Bacon",	
  "Caffeine"],	
  
	
  	
  facialHair:	
  true,	
  
	
  	
  knowsHowToComputer:	
  true,	
  
	
  	
  mvp:	
  "ALM"	
  
}	
  
Your Moderator
Alvin	
  Ashcraft	
  -­‐>	
  alvinashcraft.com	
  -­‐>	
  @alvinashcraft	
  
	
  
var	
  alvin	
  =	
  {	
  
	
  	
  title:	
  "Software	
  Architect",	
  
	
  	
  yearsExperience:	
  20,	
  
	
  	
  facialHair:	
  true,	
  
	
  	
  knowsHowToComputer:	
  true,	
  
	
  	
  mvp:	
  ".NET"	
  
}	
  
Up Ahead
•  Why Node.js?
•  Crash course
•  Tools and frameworks
•  Integration strategies
JavaScript…
…has won the Web.
– Scott Hanselman
Anything that can be
written in JavaScript…
…will eventually be written in JavaScript
– Somebody with incredible powers of observation
(go search for“jslinux”)
JavaScript…
…is tragically important.
– Douglas Crockford,
Author of“JavaScript: The Good Parts”
Node.js for .NET Developers
Node.js for .NET Developers
Node.js for .NET Developers
Node.js for .NET Developers
Node.js for .NET Developers
Node.js for .NET Developers
Node.js for .NET Developers
Why Node.js?
•  Rapid innovation & delivery
•  Developer happiness
•  Attract & retain talent
•  Performance
“Why Node.js is Becoming the Go-To Technology in the Enterprise” – nearform.com
What’s our story?
•  ASP.NET MVC, C#
•  SQL Server + NHibernate
•  JavaScript + JQuery
What’s our story?
•  JavaScript
•  Recruiting
•  Productive, less friction
–  Testing
–  Microservices
–  RabbitMQ, riak, redis
•  Cross-platform
Node.js for .NET Developers
“What is Node.js used for:The 2015 Node.js Overview Report” – blog.risingstack.com
Node.js exemplifies…
Start with the simplest
solution that works.
Do one thing,
and do it well.
Node.js is…
•  blazing fast
•  highly concurrent
•  low-friction
•  cross-platform
•  modern web server
Fandango
•  dramatically shorter development cycles
•  micro-services architecture
•  flexibility in deployment
•  easily scalable infrastructure
“Fandango Goes Live with Node.js” – nearform.com
PayPal
•  2x faster development with fewer developers
•  33% fewer lines of code
•  40% fewer files
•  2x improvement requests/sec
•  35% decrease in avg response time
Walmart
•  Black Friday, 2013
•  Mobile platform
•  200,000,000+ users
•  < 1% CPU utilization
•  Deployed updates
Who else is using Node.js?
•  Dow Jones (WSJ)
•  eBay
•  Groupon
•  LinkedIn
•  Rdio
•  Shutterstock
•  The New York Times
•  Uber
•  Yammer
•  Zendesk
nodjs.org/industry
Node.js Use Cases
•  Single-page apps
•  API server (REST, Hypermedia, etc.)
•  Real-time, streaming, WebSockets
•  Chat, IM, social media
•  Dashboards
•  Proxy service
In other words… the INTERNET
Installing Node.js
1.  http://nodejs.org
2.  Click big, green INSTALL
3.  Run installer
– OR –
Install using Chocolatey (http://chocolatey.org)
C:> choco install nodejs.install
	
  
Installing Node.js
C:> node –v
v0.10.38
C:> npm –v
1.4.28
	
  
Dependencies
– OR –
Python 2.x (https://python.org/downloads/
C:> choco install python2
	
  
Dependencies
– OR –
Visual C++ 2010 Express
C:> choco install VCExpress2010
	
  
Node.js Tools for Visual Studio
http://nodejstools.codeplex.com
https://github.com/Microsoft/nodejstools
Minimum requirements:
•  VS 2012 Pro
or
VS Community 2013
•  Latest VS updates
•  VS + Node.js Tools Azure VM
Visual Studio Code
https://code.visualstudio.com/
•  Linux, Mac OSX,
and Windows
•  code assistance
•  debugging
Node.js for .NET Developers
Deploying
•  Don’t include node_modules folder
•  …unless you create builds for specific targets
•  Azure is super-easy
•  Windows
–  iisnode for web apps
–  winser for services
•  Linux – forever
Hosting Node.js on Azure
•  Login to Azure portal
•  Click +New
•  Choose Compute > Website > From Gallery
•  Choose Templates > Node JS Empty Site
•  Connect to repository such as GitHub for automatic
deployments
•  reverentgeek.com/hosting-node-js-on-microsoft-azure/
Recommended Toolbox
Package What it do, yo
lodash JavaScript utilities
when JavaScript promise library
async async/parallel execution
request (or rest) http client
gulp build engine, test runner
socket.io sockets, real-time
node-inspector Debugging
mocha test framework
chai TDD/BDD assertion library
sinon spies, stubs, mocks
Node frameworks
MVC
•  Express
•  Meteor
•  Sails
•  Hapi
API
•  Restify
•  LoopBack
•  Autohost
nodeframework.com
nodewebmodules.com
Edge.js
•  Run .NET in-process
•  …including F#, ADO.NET, Python,
and Powershell
•  Execute inline code, files, or
assemblies
•  Alternative to writing native
modules in C
•  .NET 4.5 or Mono 3.1
What can Edge.js do?
•  Leverage existing .NET investment
•  SQL Server (or other DBs)
•  TFS, SharePoint, Exchange, etc.
•  Active Directory
•  Hardware (e.g. camera, microphone,
printer, win32)
•  Video encoding, or other CPU-intensive
work
•  Powershell
.NET + Node.js Integration
•  Edge.js
•  request module to call .NET Web API
•  Messaging (e.g. RabbitMQ, Azure Service Bus)
Node.js for .NET Developers
David Neal
@ReverentGeek
david@reverentgeek.com
reverentgeek.com
Thank You!
Demos + Resources
bit.ly/node-demos

More Related Content

PDF
Intro to Node.js (for .NET Developers)
PPSX
Node.js In The Enterprise - A Primer
PDF
Nodejs
PPTX
Introduction to Node.js
PDF
Understand How Node.js and Core Features Works
PPTX
PDF
Intro to Node.js
PDF
Node.js - Introduction and role in Frontend Development
Intro to Node.js (for .NET Developers)
Node.js In The Enterprise - A Primer
Nodejs
Introduction to Node.js
Understand How Node.js and Core Features Works
Intro to Node.js
Node.js - Introduction and role in Frontend Development

What's hot (20)

PPTX
Breaking the eggshell: From .NET to Node.js
PDF
What is Node.js | Node.js Tutorial for Beginners | Node.js Modules | Node.js ...
PDF
Introduction to Node.js
PPT
Node.js Basics
PDF
Webinar - Matteo Manchi: Dal web al nativo: Introduzione a React Native
PPSX
Node on Windows Azure
PDF
Why NodeJS
PDF
Turbocharged Java with Quarkus | JakartaOne Livestream
PPT
Introduction to node.js aka NodeJS
PDF
JavaScript as a Server side language (NodeJS): JSConf 2011, Dhaka
PDF
DevOps, Cloud, and the Death of Backup Tape Changers
PDF
NodeSummit - MEAN Stack
PPTX
Node.Js: Basics Concepts and Introduction
PPTX
PHP Indonesia - Nodejs Web Development
PPTX
Introduction to node.js
KEY
Node.js Performance Case Study
PDF
Afrimadoni the power of docker
PPTX
NodeJS and what is actually does
PPTX
Docker, From zero to hero
PDF
Node.js with Express
Breaking the eggshell: From .NET to Node.js
What is Node.js | Node.js Tutorial for Beginners | Node.js Modules | Node.js ...
Introduction to Node.js
Node.js Basics
Webinar - Matteo Manchi: Dal web al nativo: Introduzione a React Native
Node on Windows Azure
Why NodeJS
Turbocharged Java with Quarkus | JakartaOne Livestream
Introduction to node.js aka NodeJS
JavaScript as a Server side language (NodeJS): JSConf 2011, Dhaka
DevOps, Cloud, and the Death of Backup Tape Changers
NodeSummit - MEAN Stack
Node.Js: Basics Concepts and Introduction
PHP Indonesia - Nodejs Web Development
Introduction to node.js
Node.js Performance Case Study
Afrimadoni the power of docker
NodeJS and what is actually does
Docker, From zero to hero
Node.js with Express
Ad

Similar to Node.js for .NET Developers (20)

PDF
Node.js Crash Course
PPTX
Mini-Training: Node.js
PDF
What is Node.js_ Where, When & How To Use It.pdf
PDF
All aboard the NodeJS Express
PPTX
Nodejs
PDF
Node.js.pdf
PDF
Nodejs presentation
PDF
🚀 Node.js Simplified – A Visual Guide for Beginners!
KEY
An Introduction to Node.js Development with Windows Azure
PPTX
Nodejs getting started
PPTX
Node_JS_Presentation.pptxgggghhhhhhhhhhhhh
PDF
Getting Started with Node.js
PDF
Why Bet on Node.js?
PDF
Introduction to node js - From "hello world" to deploying on azure
PDF
Node.js Web Development: Powering the Future of Web Applications
DOCX
unit 2 of Full stack web development subject
PDF
NodeJS for Novices - 28/Oct/13 - Winnipeg, MB
PPTX
Why Choose Node.js For Your Next Web Development Project?
PPTX
Definitive Guide to Powerful Nodejs Development.pptx
Node.js Crash Course
Mini-Training: Node.js
What is Node.js_ Where, When & How To Use It.pdf
All aboard the NodeJS Express
Nodejs
Node.js.pdf
Nodejs presentation
🚀 Node.js Simplified – A Visual Guide for Beginners!
An Introduction to Node.js Development with Windows Azure
Nodejs getting started
Node_JS_Presentation.pptxgggghhhhhhhhhhhhh
Getting Started with Node.js
Why Bet on Node.js?
Introduction to node js - From "hello world" to deploying on azure
Node.js Web Development: Powering the Future of Web Applications
unit 2 of Full stack web development subject
NodeJS for Novices - 28/Oct/13 - Winnipeg, MB
Why Choose Node.js For Your Next Web Development Project?
Definitive Guide to Powerful Nodejs Development.pptx
Ad

More from David Neal (8)

PDF
Music City Code Achievement Unlocked (Friday Closing)
PDF
Take Back Project Sanity (CodeStock Edition)
PDF
Cross-Platform Desktop Apps with Electron (CodeStock Edition)
PDF
Cross-Platform Desktop Apps with Electron (JSConf UY)
PDF
Cross-Platform Desktop Apps with Electron (Condensed Version)
PDF
Cross-Platform Desktop Apps with Electron
PDF
How Kanban Can Help Your Team
PDF
Do you even Kanban?
Music City Code Achievement Unlocked (Friday Closing)
Take Back Project Sanity (CodeStock Edition)
Cross-Platform Desktop Apps with Electron (CodeStock Edition)
Cross-Platform Desktop Apps with Electron (JSConf UY)
Cross-Platform Desktop Apps with Electron (Condensed Version)
Cross-Platform Desktop Apps with Electron
How Kanban Can Help Your Team
Do you even Kanban?

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Tartificialntelligence_presentation.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Approach and Philosophy of On baking technology
PPTX
Machine Learning_overview_presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Machine learning based COVID-19 study performance prediction
Network Security Unit 5.pdf for BCA BBA.
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectroscopy.pptx food analysis technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
Reach Out and Touch Someone: Haptics and Empathic Computing
Tartificialntelligence_presentation.pptx
Spectral efficient network and resource selection model in 5G networks
Unlocking AI with Model Context Protocol (MCP)
Approach and Philosophy of On baking technology
Machine Learning_overview_presentation.pptx
Empathic Computing: Creating Shared Understanding
Dropbox Q2 2025 Financial Results & Investor Presentation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
SOPHOS-XG Firewall Administrator PPT.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Machine learning based COVID-19 study performance prediction

Node.js for .NET Developers

  • 1. Node.js  for  .NET  Developers   Speaker:  David  Neal   Moderator:  Alvin  Ashcra<   May  14,  2015   May  14  –  15,  2015   2015   Microso<   MVP  Virtual   Conference  
  • 2. Your Presenter David  Neal  -­‐>  reverentgeek.com  -­‐>  @reverentgeek     var  trustMe  =  {      consumes:  ["Bacon",  "Caffeine"],      facialHair:  true,      knowsHowToComputer:  true,      mvp:  "ALM"   }  
  • 3. Your Moderator Alvin  Ashcraft  -­‐>  alvinashcraft.com  -­‐>  @alvinashcraft     var  alvin  =  {      title:  "Software  Architect",      yearsExperience:  20,      facialHair:  true,      knowsHowToComputer:  true,      mvp:  ".NET"   }  
  • 4. Up Ahead •  Why Node.js? •  Crash course •  Tools and frameworks •  Integration strategies
  • 5. JavaScript… …has won the Web. – Scott Hanselman
  • 6. Anything that can be written in JavaScript… …will eventually be written in JavaScript – Somebody with incredible powers of observation (go search for“jslinux”)
  • 7. JavaScript… …is tragically important. – Douglas Crockford, Author of“JavaScript: The Good Parts”
  • 15. Why Node.js? •  Rapid innovation & delivery •  Developer happiness •  Attract & retain talent •  Performance “Why Node.js is Becoming the Go-To Technology in the Enterprise” – nearform.com
  • 16. What’s our story? •  ASP.NET MVC, C# •  SQL Server + NHibernate •  JavaScript + JQuery
  • 17. What’s our story? •  JavaScript •  Recruiting •  Productive, less friction –  Testing –  Microservices –  RabbitMQ, riak, redis •  Cross-platform
  • 19. “What is Node.js used for:The 2015 Node.js Overview Report” – blog.risingstack.com
  • 20. Node.js exemplifies… Start with the simplest solution that works. Do one thing, and do it well.
  • 21. Node.js is… •  blazing fast •  highly concurrent •  low-friction •  cross-platform •  modern web server
  • 22. Fandango •  dramatically shorter development cycles •  micro-services architecture •  flexibility in deployment •  easily scalable infrastructure “Fandango Goes Live with Node.js” – nearform.com
  • 23. PayPal •  2x faster development with fewer developers •  33% fewer lines of code •  40% fewer files •  2x improvement requests/sec •  35% decrease in avg response time
  • 24. Walmart •  Black Friday, 2013 •  Mobile platform •  200,000,000+ users •  < 1% CPU utilization •  Deployed updates
  • 25. Who else is using Node.js? •  Dow Jones (WSJ) •  eBay •  Groupon •  LinkedIn •  Rdio •  Shutterstock •  The New York Times •  Uber •  Yammer •  Zendesk nodjs.org/industry
  • 26. Node.js Use Cases •  Single-page apps •  API server (REST, Hypermedia, etc.) •  Real-time, streaming, WebSockets •  Chat, IM, social media •  Dashboards •  Proxy service In other words… the INTERNET
  • 27. Installing Node.js 1.  http://nodejs.org 2.  Click big, green INSTALL 3.  Run installer – OR – Install using Chocolatey (http://chocolatey.org) C:> choco install nodejs.install  
  • 28. Installing Node.js C:> node –v v0.10.38 C:> npm –v 1.4.28  
  • 29. Dependencies – OR – Python 2.x (https://python.org/downloads/ C:> choco install python2  
  • 30. Dependencies – OR – Visual C++ 2010 Express C:> choco install VCExpress2010  
  • 31. Node.js Tools for Visual Studio http://nodejstools.codeplex.com https://github.com/Microsoft/nodejstools Minimum requirements: •  VS 2012 Pro or VS Community 2013 •  Latest VS updates •  VS + Node.js Tools Azure VM
  • 32. Visual Studio Code https://code.visualstudio.com/ •  Linux, Mac OSX, and Windows •  code assistance •  debugging
  • 34. Deploying •  Don’t include node_modules folder •  …unless you create builds for specific targets •  Azure is super-easy •  Windows –  iisnode for web apps –  winser for services •  Linux – forever
  • 35. Hosting Node.js on Azure •  Login to Azure portal •  Click +New •  Choose Compute > Website > From Gallery •  Choose Templates > Node JS Empty Site •  Connect to repository such as GitHub for automatic deployments •  reverentgeek.com/hosting-node-js-on-microsoft-azure/
  • 36. Recommended Toolbox Package What it do, yo lodash JavaScript utilities when JavaScript promise library async async/parallel execution request (or rest) http client gulp build engine, test runner socket.io sockets, real-time node-inspector Debugging mocha test framework chai TDD/BDD assertion library sinon spies, stubs, mocks
  • 37. Node frameworks MVC •  Express •  Meteor •  Sails •  Hapi API •  Restify •  LoopBack •  Autohost nodeframework.com nodewebmodules.com
  • 38. Edge.js •  Run .NET in-process •  …including F#, ADO.NET, Python, and Powershell •  Execute inline code, files, or assemblies •  Alternative to writing native modules in C •  .NET 4.5 or Mono 3.1
  • 39. What can Edge.js do? •  Leverage existing .NET investment •  SQL Server (or other DBs) •  TFS, SharePoint, Exchange, etc. •  Active Directory •  Hardware (e.g. camera, microphone, printer, win32) •  Video encoding, or other CPU-intensive work •  Powershell
  • 40. .NET + Node.js Integration •  Edge.js •  request module to call .NET Web API •  Messaging (e.g. RabbitMQ, Azure Service Bus)