What You Will Learn from This Book
1 Introducing the Node.js-to-AngularJS Stack
Understanding the Basic Web Development Framework
Understanding the Node.js-to-AngularJS Stack Components
Understanding JavaScript Data Types
3 Getting Started with Node.js
Creating a Node.js Application
4 Using Events, Listeners, Timers, and Callbacks in Node.js
Understanding the Node.js Event Model
Adding Work to the Event Queue
5 Handling Data I/O in Node.js
Using the Buffer
Module to Buffer Data
Using the Stream
Module to Stream Data
Compressing and Decompressing Data with Zlib
6 Accessing the File System from Node.js
Synchronous Versus Asynchronous File System Calls
7 Implementing HTTP Services in Node.js
Processing Query Strings and Form Parameters
Understanding Request, Response, and Server Objects
Implementing HTTP Clients and Servers in Node.js
Implementing HTTPS Servers and Clients
8 Implementing Socket Services in Node.js
Understanding TCP Server and Socket Objects
Implementing TCP Socket Servers and Clients
Implementing TLS Servers and Clients
9 Scaling Applications Using Multiple Processors in Node.js
Understanding the process
Module
10 Using Additional Node.js Modules
11 Understanding NoSQL and MongoDB
12 Getting Started with MongoDB
Building the MongoDB Environment
13 Getting Started with MongoDB and Node.js
Adding the MongoDB Driver to Node.js
Connecting to MongoDB from Node.js
Understanding the Objects Used in the MongoDB Node.js Driver
Accessing and Manipulating Databases
Accessing and Manipulating Collections
14 Manipulating MongoDB Documents from Node.js
Understanding Database Change Options
Understanding Database Update Operators
Adding Documents to a Collection
Getting Documents from a Collection
Updating Documents in a Collection
Atomically Modifying Documents in a Collection
Saving Documents in a Collection
Using upsert
to Insert Documents in a Collection
Deleting Documents from a Collection
Removing a Single Document from a Collection
15 Accessing MongoDB Documents from Node.js
Understanding Query options
Objects
Finding Specific Sets of Documents
Applying MapReduce by Aggregating Results
16 Using Mongoose for Structured Schema and Validation
Connecting to a MongoDB Database by Using Mongoose
Understanding the Query
Object
Understanding the Document
Object
Finding Documents by Using Mongoose
Adding Documents by Using Mongoose
Updating Documents by Using Mongoose
Removing Documents by Using Mongoose
Aggregating Documents by Using Mongoose
Using the Validation Framework
Implementing Middleware Functions
IV: Using Express to Make Life Easier
18 Implementing Express in Node.js
Implementing a Template Engine
19 Implementing Express Middleware
Applying Basic HTTP Authentication
Implementing Session Authentication
20 Getting Started with AngularJS
An Overview of the AngularJS Life Cycle
Integrating AngularJS with Existing JavaScript and jQuery
Adding AngularJS to the Node.js Environment
Bootstrapping AngularJS in an HTML Document
Creating a Basic AngularJS Application
21 Understanding AngularJS Modules and Dependency Injection
Overview of Modules and Dependency Injection
Implementing Dependency Injection
22 Implementing the Scope as a Data Model
Emitting and Broadcasting Events
23 Using AngularJS Templates to Create Views
24 Implementing Directives in AngularJS Views
Creating Your Own Directives to Extend HTML
25 Implementing AngularJS Services in Web Applications
Understanding AngularJS Services
VI: Building Practical Web Application Components
26 Adding User Accounts to Your Website
Implementing the User Controller Routes
Implementing the User and Authentication Views
Implementing the AngularJS Module and Controller
Using Social Media Accounts as Authentication Sources
27 Adding Comment Threads to Pages
Defining the Comment, Reply, Photo, and Page Models
Implementing Routes to Support Viewing and Adding Comments
Implementing the Model-Based Controller Routes
Implementing Photo and Comment Views
Implementing the AngularJS Module and Controller to Support Comment Views
28 Creating Your Own Shopping Cart
Defining the Customer, Product, and Orders Models
Creating the Shopping Cart Server
Implementing Routes to Support Product, Cart, and Order Requests
Implementing the Model-Based Controller Routes
Implementing Shopping Cart and Checkout Views
Implementing the AngularJS Module and Controller to Support Shopping Cart Views
29 Building Interactive Web 2.0 Application Components
Creating the Application Server
Implementing Routes to Support the Views
Implementing a Weather Service View
Implementing Draggable Elements