Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting started with NodeJS

Getting started with NodeJS

Yet another introduction to NodeJS including a looks at
- installation options
- hello world
- modules & frameworks
- deploying & hosting
- comet and beyond

This talk was originally give at AsyncJS in Brighton 26th May 2011

http://asyncjs.com/intro-nodejs/
http://lanyrd.com/cdgth

Phil Hawksworth

October 14, 2011
Tweet

More Decks by Phil Hawksworth

Other Decks in Technology

Transcript

  1. what we’ll look at whaddizit? installation options hello world modules

    & frameworks deploying & hosting Friday, 14 October 2011
  2. what we’ll look at whaddizit? installation options hello world modules

    & frameworks deploying & hosting comet and beyond Friday, 14 October 2011
  3. considerations how mature is it? v0.0.1: early 2009, currently v.0.4.8

    who uses it? everyone is playing. Friday, 14 October 2011
  4. considerations how mature is it? v0.0.1: early 2009, currently v.0.4.8

    who uses it? everyone is playing. Friday, 14 October 2011
  5. considerations how mature is it? v0.0.1: early 2009, currently v.0.4.8

    who uses it? everyone is playing. should I be scared of it? Friday, 14 October 2011
  6. considerations how mature is it? v0.0.1: early 2009, currently v.0.4.8

    who uses it? everyone is playing. should I be scared of it? no. but be cautious. Friday, 14 October 2011
  7. from source clone source from github install dependancies xcode tools

    configure, make, make install Friday, 14 October 2011
  8. what we’ll look at whaddizit? installation options hello world modules

    & frameworks deploying & hosting comet and beyond Friday, 14 October 2011
  9. frameworks get a little help uri routing content negotiation templating

    environment configuration Friday, 14 October 2011
  10. deploying where do I put this thing? self-managed amazon, linode,

    slicehost managed Friday, 14 October 2011
  11. deploying where do I put this thing? self-managed amazon, linode,

    slicehost managed heroku, no.de Friday, 14 October 2011
  12. automated, git-based deployment install via npm manage dependancies via npm

    limited versions of nodejs duostack Friday, 14 October 2011
  13. $ git init $ git add $ git commit -m

    ‘1st commit’ Friday, 14 October 2011
  14. Delta compression using up to 2 threads. Compressing objects: 100%

    (2/2), done. Writing objects: 100% (3/3), 416 bytes, done. Total 3 (delta 0), reused 0 (delta 0) ==== Duostack deploy received for nodedemo ==== Compiling app... done Compressed size is 4.0KB ==== Launching first instances.... done ==== App successfully deployed to ==== http://nodedemo.duostack.net Friday, 14 October 2011
  15. deploying get it there git configure it install dependencies get

    it up, and keep it up Friday, 14 October 2011
  16. deploying get it there git configure it install dependencies get

    it up, and keep it up upstart Friday, 14 October 2011
  17. what we’ll look at whaddizit? installation options hello world modules

    & frameworks deploying & hosting comet and beyond Friday, 14 October 2011
  18. javascript on the client asks, and listens asks again, or

    takes action Friday, 14 October 2011
  19. WebSocket Adobe Flash Socket Ajax long polling Ajax multipart streaming

    Forever Iframe JSONP Polling Friday, 14 October 2011