An Introduction to Node.js Development with Windows Azure
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

An Introduction to Node.js Development with Windows Azure

  • 1,663 views
Uploaded on

Node.js has taken off in popularity. Find out why major internet companies like Yammer, CouchOne, DocumentCloud, and LinkedIn are using Node to power their servers. And why Microsoft added support......

Node.js has taken off in popularity. Find out why major internet companies like Yammer, CouchOne, DocumentCloud, and LinkedIn are using Node to power their servers. And why Microsoft added support for it to Azure. In this session we will build a simple yet functional web server using Node, enhance it using plugins known as Modules, and hopefully explain why Node is such a powerful new web server paradigm.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,663
On Slideshare
1,663
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
16
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Transcript

  • 1. An Introduction toNode.js Developmentwith Windows AzureSpeakerRate - http://spkr8.com/t/11611
  • 2. Who am I?I am a Microsoft Certified Solution Developer and I’vebeen developing software since 1979. Since 2009, I havebeen focused on developing mobile applications, for iPhone, Android, the mobile web, and Windows Phone 7.
  • 3. What We’re Not Going to Cover• The Depth of Windows Azure• Visual Studio• Windows 8• Git
  • 4. What We Will Cover• Node and npm• Windows Azure Website• How to Deploy
  • 5. Windows Azure is an open cloud platform that enablesyou to quickly build, deploy and manage applicationsacross a global network of Microsoft-manageddatacenters.You can build applications using any language, tool orframework.
  • 6. • Microsoft’s Cloud Computing Platform• Version 1.0 Introduced February 2010• Last Major Release on June 7, 2012
  • 7. Node.js is a platform built on Chromes JavaScriptruntime for easily building fast, scalable networkapplications. Node.js uses an event-driven, non-blockingI/O model that makes it lightweight and efficient, perfectfor data-intensive real-time applications that run acrossdistributed devices.
  • 8. • aka. Node• Introduced in 2009 By Ryan Dahl of Joyent• Current Version 0.6.19• Version 0.7.12 is in preview• Selected by InfoWorld for the “Technology of the Year Award
  • 9. Why Node?• It’s Fast• Minimalistic• Avoids Context Switching• Single Threaded
  • 10. How To Node on Azure• Node as a Cloud Service• Node as a Web Site• Node as a Web Site with WebMatrix
  • 11. Create a Windows Azure Account• windowsazure.com• click the free trial button (90 days free)• You will need a windows live ID
  • 12. Installing Node• https://www.windowsazure.com/en-us/develop/ nodejs/• Installers for Windows, Mac, and Linux
  • 13. Show server1.js
  • 14. Hello Node!var http = require(http); // what is http?http.createServer(function (req, res) { res.writeHead(200, {Content-Type: text/plain}); res.end(Hello Node!n);}).listen(3000, 127.0.0.1);console.log(Server running at http://127.0.0.1:3000/);
  • 15. Packages• Core Modules which are compiled into Node• Userland Everything else
  • 16. Core Modules• http - HTTP server and client• url - utilities for URL resolution and parsing• path - utilities for handling and transforming file paths• fs - File I/O is provided by simple wrappers around standard POSIX functions
  • 17. Show server2.js
  • 18. npm• a command line utility (npm)• a web based registry of modules (search.npmjs.org)
  • 19. Install express using npm
  • 20. Userland Modules• connect• express - high performance, high class web development for Node.js built on top of connect• mongodb - port of mongodb to non-blocking JavaScript• plus many, many more
  • 21. If there is something you need to do inNode, first look for a module to do it for you.
  • 22. Show server3.js
  • 23. Update Server on Azure
  • 24. Summary Node.js is an easy tolearn, high performance
  • 25. Resources• http://nodejs.org/• https://www.windowsazure.com
  • 26. Please Rate My Talk: SpeakerRate - http://spkr8.com/t/11611 The Source Code is on GitHub at:https://github.com/Rockncoder/IntroToNode