ABOUT
THIS
BOOK
xix
functionality to web applications. Chapters 8 provides an introduction to the Express
framework, and chapter 9 guides the reader through advanced Express usage.
With the basics of web development covered, part 2 concludes after exploring two
more related topics. Chapter 10 guides the reader through the use of various Node
testing frameworks. Chapter 11 then teaches how templating can be used in Node
web applications to separate presentation of data from logic.
Part 3 moves on to look at things beyond web development that can be done with
Node. Chapter 12 talks about how Node applications can be deployed to production
servers, how uptime can be maintained, and how performance can be maximized.
Chapter 13 explains how non-
HTTP
applications can be created, how to use the
Socket.io framework to create real-time applications, and the use of a number of handy
build-in Node
API
s. Chapter 14, the final chapter, discusses how the Node community
works and how Node creations can be published using the Node Package Manager.
Code conventions and downloads
The code in this book follows common JavaScript conventions. Spaces, rather than
tabs, are used for indentation. Lines longer than 80 characters are avoided. In many
listings, the code is annotated to point out key concepts.
A single statement per line is used and semicolons are added at the end of simple
statements. For blocks of code, where one or more statements are enclosed in curly
braces, the left curly brace is placed at the end of the opening line of the block. The
right curly brace is indented so it’s vertically aligned with the opening line of the
block.
Source code for the examples in this book is available for download from the pub-
lisher’s website at www.manning.com/Node.jsinAction.
Author Online
Purchase of Node.js in Action includes free access to a private web forum run by Man-
ning Publications where you can make comments about the book, ask technical ques-
tions, and receive help from the authors and from other users. To access the forum
and subscribe to it, point your web browser to www.manning.com/Node.jsinAction.
This page provides information on how to get on the forum once you’re registered,
what kind of help is available, and the rules of conduct on the forum.
Manning’s commitment to our readers is to provide a venue where a meaningful
dialog between individual readers and between readers and the authors can take
place. It’s not a commitment to any specific amount of participation on the part of the
authors, whose contribution to the forum
remains voluntary (and unpaid). We sug-
gest you try asking the authors some challenging questions lest their interest stray!
The Author Online forum and the archives of previous discussions will be accessi-
ble from the publisher’s website as long as the book is in print.