PacktLib: Node Web Development

Node Web Development

Credits

About the Author

Acknowledgement

About the Reviewers

www.PacktPub.com

Preface

What is Node?

What can you do with Node?

Why should you use Node?

Spelling: Node, Node.js, or Node.JS?

Summary

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

Node Modules

What's a module?

Node package Manager (npm)

Summary

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

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

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