Node Web Development

A practical introduction to Node, the exciting new server-side JavaScript web development stack

Node Web Development

Starting
David Herron

A practical introduction to Node, the exciting new server-side JavaScript web development stack
$5.00
$24.99
RRP $14.99
RRP $24.99
eBook
Print + eBook
Free Sample

Book Details

ISBN 139781849515146
Paperback172 pages

Book Description

Node is an exciting new technology stack that brings JavaScript to the server-side of web applications for the first time. Node means that JavaScript is no longer just for browsers. It's for web application development, it's for developing any internet protocol, it's for the real-time web, it's for command line scripts, and much more.

Node Web Development gives you an excellent starting point straight into the heart of developing server side web applications with node. You will learn, through practical examples, how to use the HTTP Server and Client objects, the Connect and Express application frameworks, the algorithms for asynchronous execution, and use both SQL and MongoDB databases.

This book is the ideal companion for getting started with Node. Starting with practical advice on installing Node for both development and application deployment, you will learn how to develop both HTTP Server and Client applications. Many different ways of working with Node are shown, including using database storage engines in applications and developing websites both with and without the Connect/Express web application framework. You will also get an introduction to Node’s CommonJS module system allowing you to implement an important subset of object-oriented design.

Table of Contents

Chapter 1: What is Node?
What can you do with Node?
Why should you use Node?
Spelling: Node, Node.js, or Node.JS?
Summary
Chapter 2: Setting up Node
System requirements
Installation on POSIX-like systems (Linux, Solaris, Mac, and so on)
Installing developer tools on Mac OS X
Run a few commands; test your installation
Installing npm—the Node package manager
Starting Node servers at system startup
Summary
Chapter 3: Node Modules
What's a module?
Node package Manager (npm)
Summary
Chapter 4: Variations on a Simple Application
Creating a Math Wizard
Implementing the Math Wizard with Node (no frameworks)
Using Express to implement the Math Wizard
Summary
Chapter 5: A Simple Web Server, EventEmitters, and HTTP Clients
Sending and receiving events with EventEmitters
HTTP Sniffer—listening to the HTTP conversation
Implementing a basic web server
MIME types and the MIME npm package
Cookie handling
Virtual hosts and request routing
Making HTTP Client requests
Summary
Chapter 6: Data Storage and Retrieval
Data storage engines for Node
SQLite3—Lightweight in-process SQL engine
Mongoose—Node interface to MongoDB
A quick look at authenticating your users
Summary

What You Will Learn

  • Discover the role of server-side JavaScript in web application development
  • Make informed architecture choices in Node for performance and throughput
  • Install and use Node for both the development and deployment of server-side web applications
  • Use the Connect and Express application frameworks
  • Set up either SQL or MongoDB database systems in your application
  • Learn the difference between synchronous and asynchronous algorithms and why they are important

Authors

Table of Contents

Chapter 1: What is Node?
What can you do with Node?
Why should you use Node?
Spelling: Node, Node.js, or Node.JS?
Summary
Chapter 2: Setting up Node
System requirements
Installation on POSIX-like systems (Linux, Solaris, Mac, and so on)
Installing developer tools on Mac OS X
Run a few commands; test your installation
Installing npm—the Node package manager
Starting Node servers at system startup
Summary
Chapter 3: Node Modules
What's a module?
Node package Manager (npm)
Summary
Chapter 4: Variations on a Simple Application
Creating a Math Wizard
Implementing the Math Wizard with Node (no frameworks)
Using Express to implement the Math Wizard
Summary
Chapter 5: A Simple Web Server, EventEmitters, and HTTP Clients
Sending and receiving events with EventEmitters
HTTP Sniffer—listening to the HTTP conversation
Implementing a basic web server
MIME types and the MIME npm package
Cookie handling
Virtual hosts and request routing
Making HTTP Client requests
Summary
Chapter 6: Data Storage and Retrieval
Data storage engines for Node
SQLite3—Lightweight in-process SQL engine
Mongoose—Node interface to MongoDB
A quick look at authenticating your users
Summary

Book Details

ISBN 139781849515146
Paperback172 pages
Read More

Read More Reviews