Books & Videos

Table of Contents

  1. Chapter 1 Node.js: Up and Running

    1. Setting Up a Node Development Environment

    2. Node: Jumping In

    3. Asynchronous Functions and the Node Event Loop

    4. Benefits of Node

  2. Chapter 2 Interactive Node with REPL

    1. REPL: First Looks and Undefined Expressions

    2. Benefits of REPL: Getting a Closer Understanding of JavaScript Under the Hood

    3. Multiline and More Complex JavaScript

    4. Stuff Happens—Save Often

  3. Chapter 3 The Node Core

    1. Globals: global, process, and Buffer

    2. The Timers: setTimeout, clearTimeout, setInterval, and clearInterval

    3. Servers, Streams, and Sockets

    4. Child Processes

    5. Domain Resolution and URL Processing

    6. The Utilities Module and Object Inheritance

    7. Events and EventEmitter

  4. Chapter 4 The Node Module System

    1. Loading a Module with require and Default Paths

    2. External Modules and the Node Package Manager

    3. Finding Modules

    4. Creating Your Own Custom Module

  5. Chapter 5 Control Flow, Asynchronous Patterns, and Exception Handling

    1. Promises, No Promises, Callback Instead

    2. Sequential Functionality, Nested Callbacks, and Exception Handling

    3. Asynchronous Patterns and Control Flow Modules

    4. Node Style

  6. Chapter 6 Routing Traffic, Serving Files, and Middleware

    1. Building a Simple Static File Server from Scratch

    2. Middleware

    3. Routers

    4. Proxies

  7. Chapter 7 The Express Framework

    1. Express: Up and Running

    2. The app.js File in More Detail

    3. Error Handling

    4. A Closer Look at the Express/Connect Partnership

    5. Routing

    6. Cue the MVC

    7. Testing the Express Application with cURL

  8. Chapter 8 Express, Template Systems, and CSS

    1. The Embedded JavaScript (EJS) Template System

    2. Using a Template System (EJS) with Express

    3. The Jade Template System

    4. Incorporating Stylus for Simplified CSS

  9. Chapter 9 Structured Data with Node and Redis

    1. Getting Started with Node and Redis

    2. Building a Game Leaderboard

    3. Creating a Message Queue

    4. Adding a Stats Middleware to an Express Application

  10. Chapter 10 Node and MongoDB: Document-Centric Data

    1. The MongoDB Native Node.js Driver

    2. Implementing a Widget Model with Mongoose

  11. Chapter 11 The Node Relational Database Bindings

    1. Getting Started with db-mysql

    2. Native JavaScript MySQL Access with node-mysql

    3. ORM Support with Sequelize

  12. Chapter 12 Graphics and HTML5 Video

    1. Creating and Working with PDFs

    2. Accessing ImageMagick from a Child Process

    3. Properly Serving HTML5 Video with HTTP

    4. Creating and Streaming Canvas Content

  13. Chapter 13 WebSockets and Socket.IO

    1. WebSockets

    2. An Introduction to Socket.IO

    3. Configuring Socket.IO

    4. Chat: The WebSockets “Hello, World”

    5. Using Socket.IO with Express

  14. Chapter 14 Testing and Debugging Node Applications

    1. Debugging

    2. Unit Testing

    3. Acceptance Testing

    4. Performance Testing: Benchmarks and Load Tests

    5. Refreshing Code with Nodemon

  15. Chapter 15 Guards at the Gate

    1. Encrypting Data

    2. Authentication/Authorization with Passport

    3. Protecting Applications and Preventing Attacks

    4. Sandboxed Code

  16. Chapter 16 Scaling and Deploying Node Applications

    1. Deploying Your Node Application to Your Server

    2. Deployment to a Cloud Service

  1. Appendix Node, Git, and GitHub

  2. Colophon