Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hour14, Example 3-6 #6

Open
testflyjets opened this issue Aug 24, 2013 · 1 comment
Open

Hour14, Example 3-6 #6

testflyjets opened this issue Aug 24, 2013 · 1 comment

Comments

@testflyjets
Copy link

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!

@shapeshed
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants