Node.js Quick Tour - JUG Summer Camp 2012

750
-1

Published on

A quick tour of Node.js and its ecosystem. Given at the JUG Summer Camp 2012 : https://sites.google.com/site/jugsummercamp/presentations#Tout

Published in: Technology, Business
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
750
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

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
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Node.js Quick Tour - JUG Summer Camp 2012

    1. 1. Q u i c k t o u r
    2. 2. SummaryWhat  ? Why  ?Non blocking API exampleEvent programming modelExpress, Socket.IO and modulesHands OnBest practicesPro & Cons
    3. 3. What is Node ?Server-side JavascriptNode.js javascript implementation is V8 JavascriptEngineProvide an easy way to build scalable networkprogramsSingle ThreadedWritten by Ryah Dahl
    4. 4. What is Node ?
    5. 5. Node sample
    6. 6. Another blocking API
    7. 7. Another blocking API
    8. 8. Non blocking API
    9. 9. Server Node Core
    10. 10. Request / Response
    11. 11. Event programming modelEvents are the heart of Node.jsEverything is event basedYou can create yours own events
    12. 12. event sample
    13. 13. ModulesEvery modules in NPMWeb FrameworksQuick starterProductivity toolsTesting...
    14. 14. CoffeeScript
    15. 15. Node Express Boilerplate
    16. 16. Express
    17. 17. Express
    18. 18. Jade
    19. 19. Underscore.js
    20. 20. Async.js
    21. 21. Socket.io
    22. 22. Socket.io
    23. 23. Socket.io
    24. 24. But also...WinstonNodemonSupervisorForeverZombieVows...
    25. 25. Create your module !
    26. 26. And now... hands on Node.js !
    27. 27. Best practiceRespect Node callback convention :function(err, obj) {...}Prevent callback of callback of callback ofcallback... by using async.* (series...)Handle errors !Let it crash
    28. 28. API Stability
    29. 29. API Stability
    30. 30. API Stability
    31. 31. Heroku
    32. 32. Nodejitsu
    33. 33. Nodester / Appfog
    34. 34. Who is using NodeCBS, LinkedIn and Walmart (mobile server)Mozilla (browser API support)EBay (HTTP API service)Klout (with Socket.IO)Yammer (application platform)CouchOne (async background tasks)DocumentCloud (full webapp)Many others (Voxer, geekli.st, Twitter, Yahoo!, TranslateIT...)
    35. 35. +Share code between client and serverJavascript full stack (+ JSON in database !)DocumentationHuge communityNPMStabilization
    36. 36. -Exception not readableOnly one thread (also an advantage)Cluster in heavy developmentNon async third party libTooling (IntelliJ IDEA rocks !)
    37. 37. LinksQuick tour : http://www.slideshare.net/the_undefined/nodejs-a-quick-tourNode beginner : http://nodebeginner.org/Hands on Node.js : http://nodetuts.com/handson-nodejs-book.htmlNode.js in Action : http://www.manning.com/cantelonDailyJS : http://dailyjs.comNodejitsu : http://docs.nodejitsu.com
    38. 38. THANK YOU !

    ×