nodejsbook.io.examples
nodejsbook.io.examples copied to clipboard
Hour14, Example 3-6
Running the examples with Node.js version 0.10.16 required some minor changes.
The version of Express in package.json needed to be:
"express":"3.1.0"
The initial part of app.js needs to change to:
var app = require('express')(),
server = require('http').createServer(app),
twitter = require('ntwitter'),
io = require('socket.io').listen(server);
server.listen(3000);
With that, the examples run great. Thanks for putting this book out there!
Thanks - I'm in the process of updating examples for Express 3 and the book may see a new edition with updated code examples. Thanks for sharing the code.
G