nodejsbook.io.examples icon indicating copy to clipboard operation
nodejsbook.io.examples copied to clipboard

Hour14, Example 3-6

Open testflyjets opened this issue 11 years ago • 1 comments

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!

testflyjets avatar Aug 24 '13 07:08 testflyjets

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

shapeshed avatar Aug 28 '13 06:08 shapeshed