Learning Node

Overview

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 ...

See more details below
Paperback
$23.43
BN.com price
(Save 33%)$34.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (11) from $3.23   
  • New (8) from $18.29   
  • Used (3) from $3.23   
Learning Node

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study

Want a NOOK? Explore Now

NOOK Book (eBook)
$15.49
BN.com price
(Save 44%)$27.99 List Price

Overview

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)

Read More Show Less

Product Details

  • ISBN-13: 9781449323073
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 10/5/2012
  • Edition number: 1
  • Pages: 396
  • Sales rank: 682,380
  • Product dimensions: 6.90 (w) x 9.10 (h) x 0.90 (d)

Meet the Author

Shelley Powers has been working with, and writing about, web technologies—from the first release of JavaScript to the latest graphics and design tools—for more than 12 years. Her recent O'Reilly books have covered the semantic web, Ajax, JavaScript, and web graphics. She's an avid amateur photographer and web development aficionado, who enjoys applying her latest experiments on her many web sites.

Read More Show Less

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;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)