Learning Node / Edition 1

Learning Node / Edition 1

by Shelley Powers
ISBN-10:
1449323073
ISBN-13:
2901449323072
Pub. Date:
10/05/2012
Publisher:
O'Reilly Media, Incorporated
Select a Purchase Option
  • purchase options

    Temporarily Out of Stock Online

    icon-error
    Note: Access code and/or supplemental material are not guaranteed to be included with textbook rental or used textbook.
  • purchase options
    $19.43 $34.99 Save 44% Current price is $19.43, Original price is $34.99. You Save 44%.
    icon-error
    Note: Access code and/or supplemental material are not guaranteed to be included with textbook rental or used textbook.

Overview

Learning Node / Edition 1

Take your web development skills from browser to server with Node—and learn how to write fast, highly scalable network applications on this JavaScript-based platform. With this hands-on guide, you’ll quickly master Node’s core fundamentals, gain experience with several built-in and contributed modules, and learn the differences and parallels between client- and server-side programming.

Get up to speed on Node’s event-driven, asynchronous I/O model for developing data-intensive applications that are frequently accessed but computationally simple. If you’re comfortable working with JavaScript, this book provides numerous programming and deployment examples to help you take advantage of server-side development with Node.

  • Explore Node’s unique approach to asynchronous development
  • Build sample Node applications with the Express framework and Connect middleware
  • Use NoSQL solutions such as Redis and MongoDB—and explore Node’s relational database modules
  • Work with PDF files, serve HTML5 media, and create graphics with Canvas
  • Set up bidirectional communication between browser and server with WebSockets
  • Learn in-depth practices for debugging and testing your applications
  • Deploy Node applications in the cloud or on your own system

"Learning Node will make it easy for someone from any programming background to get a grip on Node.js and build amazing projects."

—Tom Hughes-Croucher, co-author of Node: Up and Running (O’Reilly)

Product Details

ISBN-13: 2901449323072
Publisher: O'Reilly Media, Incorporated
Publication date: 10/05/2012
Pages: 396
Product dimensions: 6.00(w) x 1.25(h) x 9.00(d)

Table of Contents

Preface;
Not Your Ordinary JavaScript;
Why Node?;
This Book’s Intended Audience;
How to Best Use This Book;
The Technology;
The Examples;
Conventions Used in This Book;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Acknowledgments;
Chapter 1: Node.js: Up and Running;
1.1 Setting Up a Node Development Environment;
1.2 Node: Jumping In;
1.3 Asynchronous Functions and the Node Event Loop;
1.4 Benefits of Node;
Chapter 2: Interactive Node with REPL;
2.1 REPL: First Looks and Undefined Expressions;
2.2 Benefits of REPL: Getting a Closer Understanding of JavaScript Under the Hood;
2.3 Multiline and More Complex JavaScript;
2.4 Stuff Happens—Save Often;
Chapter 3: The Node Core;
3.1 Globals: global, process, and Buffer;
3.2 The Timers: setTimeout, clearTimeout, setInterval, and clearInterval;
3.3 Servers, Streams, and Sockets;
3.4 Child Processes;
3.5 Domain Resolution and URL Processing;
3.6 The Utilities Module and Object Inheritance;
3.7 Events and EventEmitter;
Chapter 4: The Node Module System;
4.1 Loading a Module with require and Default Paths;
4.2 External Modules and the Node Package Manager;
4.3 Finding Modules;
4.4 Creating Your Own Custom Module;
Chapter 5: Control Flow, Asynchronous Patterns, and Exception Handling;
5.1 Promises, No Promises, Callback Instead;
5.2 Sequential Functionality, Nested Callbacks, and Exception Handling;
5.3 Asynchronous Patterns and Control Flow Modules;
5.4 Node Style;
Chapter 6: Routing Traffic, Serving Files, and Middleware;
6.1 Building a Simple Static File Server from Scratch;
6.2 Middleware;
6.3 Routers;
6.4 Proxies;
Chapter 7: The Express Framework;
7.1 Express: Up and Running;
7.2 The app.js File in More Detail;
7.3 Error Handling;
7.4 A Closer Look at the Express/Connect Partnership;
7.5 Routing;
7.6 Cue the MVC;
7.7 Testing the Express Application with cURL;
Chapter 8: Express, Template Systems, and CSS;
8.1 The Embedded JavaScript (EJS) Template System;
8.2 Using a Template System (EJS) with Express;
8.3 The Jade Template System;
8.4 Incorporating Stylus for Simplified CSS;
Chapter 9: Structured Data with Node and Redis;
9.1 Getting Started with Node and Redis;
9.2 Building a Game Leaderboard;
9.3 Creating a Message Queue;
9.4 Adding a Stats Middleware to an Express Application;
Chapter 10: Node and MongoDB: Document-Centric Data;
10.1 The MongoDB Native Node.js Driver;
10.2 Implementing a Widget Model with Mongoose;
Chapter 11: The Node Relational Database Bindings;
11.1 Getting Started with db-mysql;
11.2 Native JavaScript MySQL Access with node-mysql;
11.3 ORM Support with Sequelize;
Chapter 12: Graphics and HTML5 Video;
12.1 Creating and Working with PDFs;
12.2 Accessing ImageMagick from a Child Process;
12.3 Properly Serving HTML5 Video with HTTP;
12.4 Creating and Streaming Canvas Content;
Chapter 13: WebSockets and Socket.IO;
13.1 WebSockets;
13.2 An Introduction to Socket.IO;
13.3 Configuring Socket.IO;
13.4 Chat: The WebSockets “Hello, World”;
13.5 Using Socket.IO with Express;
Chapter 14: Testing and Debugging Node Applications;
14.1 Debugging;
14.2 Unit Testing;
14.3 Acceptance Testing;
14.4 Performance Testing: Benchmarks and Load Tests;
14.5 Refreshing Code with Nodemon;
Chapter 15: Guards at the Gate;
15.1 Encrypting Data;
15.2 Authentication/Authorization with Passport;
15.3 Protecting Applications and Preventing Attacks;
15.4 Sandboxed Code;
Chapter 16: Scaling and Deploying Node Applications;
16.1 Deploying Your Node Application to Your Server;
16.2 Deployment to a Cloud Service;
Node, Git, and GitHub;
Colophon;

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews