Practical Node.js

Building Realtime Scalable Web Apps

By Azat Mardan

Practical Node.js Cover Image

Practical Node.js is your step-by-step guide to learning how to build scalable real-time web applications, taking you from installing Express.js to writing full-stack web applications with powerful libraries such as Mongoskin, Everyauth, Mocha, Mongoose, Socket.IO, Handlebars, and everything in between.

Full Description

  • ISBN13: 978-1-4302-6595-5
  • User Level: Intermediate to Advanced
  • Publishing June 17, 2014, but available now as part of the Alpha Program
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $49.99
  • eBook Price: $34.99

Related Titles

Full Description

Practical Node.js is your step-by-step guide to learning how to build scalable real-time web applications using a professional web development toolkit. Node.js is a highly scalable and efficient platform for building web applications. If you already know the basics of Node.js, now is the time to discover how to use it in the real world. 

Node.js doesn't live in a vacuum. In a modern web development, many different components need to be put together — routing, database driver, HTML template engine, CSS compilers. As a web developer, you'll work with a varied collection of standards and frameworks - Practical Node.js shows you how all those pieces fit together.

Practical Node.js takes you from installing all the necessary modules to writing full-stack web applications by harnessing the power of the Express.js framework, the MongoDB database, Handlebars template engine, LESS CSS language, and the Socket.IO library, and everything in between. You'll build full-stack real-time Node.js apps from scratch, and also discover how to write your own Node.js modules and publish them on NPM. You already know what Node.js is; now learn what you can do with it and how far you can take it.

What you’ll learn

  • Manipulate data from the mongo console and MongoHQ
  • Build REST API server, deploy it to Heroku and test it with TravisCI
  • Learn about Redis, domains, clusters and streams
  • Implement third-party OAuth with and without third-party module Everyauth
  • Write your own Node.js module, publish it on NPM

Who this book is for

Practical Node.js is for web developers who have some familiarity with the basics of Node.js and want to learn how to use it to build apps in a professional environment.

Table of Contents

Table of Contents

  1. Setting Up Node.js and Other Essentials
  2. Using Express.js to Create Rapid Node.js Web Apps
  3. TDD and BDD for Node.js with Mocha
  4. Template Engines: Jade and Handlebars 
  5. Persistence with MongoDB and Mongoskin 
  6. Using Sessions and OAuth to Authorize and Authenticate Users in Node.js Apps
  7. Boosting Your Node.js Data with the Mongoose ORM Library
  8. Building a Node.js REST API Server App
  9. Realtime Apps with WebSockets, Socket.IO, and Derby JS
  10. Getting Node.js Apps Production Ready
  11. Deploying Node.js Apps
  12. Publishing a Node.js Module and Contributing Back to the Project


If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

* Required Fields

No errata are currently published