Weitere ähnliche Inhalte Ähnlich wie Getting started with developing Nodejs (20) Kürzlich hochgeladen (20) Getting started with developing Nodejs2. what we’ll look at
whaddizit?
installation options
hello world
modules & frameworks
deploying & hosting
comet and beyond
6. evented i-what now?
c++
v8 javascript engine
server-side javascript
single event loop
non-blocking
9. considerations
how mature is it?
v0.0.1: early 2009, currently v.0.4.8
who uses it?
everyone is playing.
12. 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.
15. from source
clone source from github
install dependancies
xcode tools
configure, make, make install
42. !"# express@2.2.2
$ !"# connect@1.3.0
$ $ !"" mime@1.2.1
$ $ %"" qs@0.1.0
$ !"" mime@1.2.1
$ %"" qs@0.1.0
!"" n@0.4.1
%"" underscore@1.1.6
43. !"# express@2.2.2
$ !"# connect@1.3.0
$ $ !"" mime@1.2.1
$ $ %"" qs@0.1.0
$ !"" mime@1.2.1
$ %"" qs@0.1.0
!"" n@0.4.1
%"" underscore@1.1.6
58. what we’ll look at
whaddizit?
installation options
hello world
modules & frameworks
deploying & hosting
comet and beyond
65. frameworks
get a little help
uri routing
content negotiation
templating
environment configuration
66. express
the canonical web
development framework
http://expressjs.com
80. deploying
where do I put this thing?
self-managed
amazon, linode, slicehost
managed
heroku, no.de
89. 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
94. deploying
get it there
git
configure it
install dependencies
get it up, and keep it up
upstart
103. what we’ll look at
whaddizit?
installation options
hello world
modules & frameworks
deploying & hosting
comet and beyond
115. WebSocket
Adobe Flash Socket
Ajax long polling
Ajax multipart streaming
Forever Iframe
JSONP Polling