Running Node.js and “Hello World!”
Editing and Running JavaScript Files
Debugging Your Node.js Programs
Staying Up-to-Date and Finding Help
Type Comparisons and Conversions
Classes, Prototypes, and Inheritance
Some Important Node.js Globals
The Node.js Way of Doing Things
Error Handling and Asynchronous Functions
The callback Function and Error Handling
Who Am I? Maintaining a Sense of Identity
Being Polite—Learning to Give Up Control
Node Pattern: Asynchronous Loops
Learning to Juggle: Handling More Requests
More on the Request and Response Objects
Increased Flexibility: GET Params
Making Promises and Keeping Them
Serving Static Content with Streams
Serving Static Files in a Web Server with Buffers
Serving Up More Than Just HTML
Assembling Content on the Client: Templates
The JavaScript Loader/Bootstrapper
Your Home Page Mustache Template
7 Building Web Applications with Express
Updating Your Photo Album App for Routing
Additional Middleware Functionality
POST Data, Cookies, and Sessions
Better Browser Support for PUT and DELETE
Adding Authentication to our Application
8 Databases I: NoSQL (MongoDB)
Structuring Your Data for MongoDB
Understanding the Basic Operations
Connecting and Creating a Database
Inserting Documents into Collections
Deleting Documents from Collections
Updating Your Photo Albums App
Writing the Low-Level Operations
Modifying the API for the JSON Server
Adding Some New Pages to the Application
Adding the mysql Module from npm
Creating a Schema for the Database
Updating the Photo Sharing Application
Authenticating via the Database
Updating the API to Support Users
Examining the Core User Data Operations
Updating the Express Application for Authentication
Implementing User Authentication
Hooking up Passport and Routes
Creating the Login and Register Pages
IV: Getting the Most Out of Node.js
10 Deployment and Development I: Rolling Your Own
Multiprocessor Deployment: Using a Proxy
Securing Your Projects with HTTPS/SSL
Locations and Configuration Files
11 Deployment and Development II: Heroku and Azure
Create and Deploy the Application on Heroku
Create and Deploy the Application on Azure
We Have a Problem (and Déja Vu!)
Working with Files Synchronously
Listing Contents of Directories
Interacting with the User: stdin/stdout
Basic Buffered Input and Output
Advanced Process Creation with Spawn