12. Big Node.js things
• Completely javascript based.
• Asynchronous.
• Crazy, whack-daddy fast.
• You gotta learn javascript anyway.
13. More Node.js things
• Express is the most common framework
• Many others to choose from
• Excellent from an operational perspective
• Great build tools for css and assets
17. Most simple example
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello Worldn');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
18. This one repeats what it
hears
var net = require('net');
!
var server = net.createServer(function (socket) {
socket.write('Echo serverrn');
socket.pipe(socket);
});
!
server.listen(1337, '127.0.0.1');
21. Many frameworks and
stacks to choose from
• Express - the most common framework for Node
• MEAN.js - MongoDB, Express, AngularJS and
Node
• ng-kickstarter - Better hooks for developers
(SASS, Zurb, Grunt, API proxy, and more)
25. Asynchronous
• Well that was not intuitive.
• You spend a lot of time making asynchronous
code act like a synchronous application.
• You’re doin’ it RONG.
27. There’s plenty of docs!
• …from eight months ago
• …that are no longer functional
• …and probably didn’t work very well back then
• Today’s blog post is tomorrow’s broken example
• When stack overflow is your go-to resource,
there’s a problem