Node ?



www.nodejs.org
cross platform

server side javascript

 google chrome V8
PROS
●   fast
●   C10K
●   asynchronous
●   libraries, npm
●   heroku, azure...
●   it's javascript
CONS
●   not stable yet
●   it's javascript
Hello world PHP
echo "Hellon";
sleep(5);
echo "worldn";
Hello world Python
print "Hello"
time.sleep(5)
print "world"
Hello world Node
setTimeout(function () {
    console.log("world");
}, 5000);
console.log("Hello");
Web server
var http = require('http');

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type':
'text/plain'});
    res.end('Hello Worldn');
}).listen(80);
npm install
●   express, ...
●   ms-sql, mysql, postgresql,
    oracle, ...
●   redis, mongo, ...
●   mustache, haml, ...
●   socket.io
npmjs.org




"10942 total packages"
Saša Matijašić

       www.logit.hr
     sasha@logit.hr
   twitter: @returnnull
google+: selectnull.com/+

(WS14) Sasa Matijasic - Node.js i "novi" web