Book Image

Node.js Web Development - Third Edition

By : David Herron
Book Image

Node.js Web Development - Third Edition

By: David Herron

Overview of this book

Node.js is a server-side JavaScript platform using an event driven, non-blocking I/O model allowing users to build fast and scalable data-intensive applications running in real time. Node.js Web Development shows JavaScript is not just for browser-side applications. It can be used for server-side web application development, real-time applications, microservices, and much more. This book gives you an excellent starting point, bringing you straight to the heart of developing web applications with Node.js. You will progress from a rudimentary knowledge of JavaScript and server-side development to being able to create and maintain your own Node.js application. With this book you'll learn how to use the HTTP Server and Client objects, data storage with both SQL and MongoDB databases, real-time applications with Socket.IO, mobile-first theming with Bootstrap, microservice deployment with Docker, authenticating against third-party services using OAuth, and much more.
Table of Contents (18 chapters)
Node.js Web Development Third Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Installing developer tools on Mac OS X


Developer tools (such as GCC) are an optional installation on Mac OS X. Fortunately, they're easy to acquire.

You start with Xcode, which is available, for free through the Mac App Store. Simply search for Xcode and click on the Get button. Once you have Xcode installed, open a Command Prompt window and type the following:

$ xcnwode-select --install

This installs the Xcode command-line tools.

For additional information, visit http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/.

Installing from source for all POSIX-like systems

First, download the source from http://nodejs.org/download. One way to do this is with your browser and another way is as follows, substituting your preferred version:

$ mkdir src
$ cd src
$ wget https://nodejs.org/dist/v4.2.6/node-v4.2.6.tar.gz
$ tar xvfz node-v4.2.6.tar.gz
$ cd node-v4.2.6

The next step is to configure the source so that it can be built. It is done with the typical sort of configure script and you...