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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access