Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Node.js the Right Way
Table of Contents
Early praise for Node.js the Right Way
Acknowledgments
Preface
Why Node.js the Right Way
What’s in This Book
What This Book Is Not
Code Examples and Conventions
Online Resources
Chapter 1: Getting Started
Node’s Niche
How Node Applications Work
Aspects of Node.js Development
Get Node.js
Chapter 2: Wrangling the File System
Programming for the Node.js Event Loop
Spawning a Child Process
Capturing Data from an EventEmitter
Reading and Writing Files Asynchronously
The Two Phases of a Node Program
Wrapping Up
Chapter 3: Networking with Sockets
Listening for Socket Connections
Implementing a Messaging Protocol
Creating Socket Client Connections
Testing Network Application Functionality
Extending Core Classes in Custom Modules
Wrapping Up
Chapter 4: Robust Messaging Services
Advantages of ØMQ
Importing External Modules with npm
Message-Publishing and -Subscribing
Responding to Requests
Routing and Dealing Messages
Clustering Node.js Processes
Pushing and Pulling Messages
Wrapping Up
Chapter 5: Accessing Databases
Advantages of CouchDB
Creating a Package
Making RESTful Requests
Importing Real Data
Unit Testing with Nodeunit
Throttling Node.js
Querying Data with Mapreduce Views
Wrapping Up
Chapter 6: Scalable Web Services
Advantages of Express
Serving APIs with Express
Writing Modular Express Services
RESTful APIs with Promises
Yielding Control with Generators
Using Generators with Promises
Wrapping Up
Chapter 7: Web Apps
Storing Express Sessions in Redis
Creating a Single-Page Web Application
Authenticating with Passport
Authorizing APIs with Custom Middleware
Creating Authenticated APIs
Client-Side MVC
Wrapping Up
Parting Thoughts
You May Be Interested In…
← Prev
Back
Next →
← Prev
Back
Next →