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 ...

Get Data Visualization: Representing Information on Modern Web now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.