O'Reilly logo

Social Data Visualization with HTML5 and JavaScript by Simon Timms

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up a server

As I mentioned, Twitter does not allow direct access to their authentication structure from a browser, we'll need to make use of a server. Fortunately, we can develop against a server on our own computer—no need for an external server. We're using a lot of JavaScript in this book, so let's keep that theme going and host our site locally using node.js. Any other HTTP server will also work.

Installing node.js is pretty simple. If you're on Windows, then there is an installer available from http://nodejs.org. On OS X, there is a .pkg-based installer available on the same site, or it can be installed using Homebrew. If you're using Linux, it is preferable to compile from source. However, if you're using a distribution with a built-in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required