1 Introducing the Node.js-to-Angular Stack
Understanding the Basic Web Development Framework
Understanding the Node.js-to-Angular Stack Components
Understanding JavaScript Data Types
Applying Comparison and Conditional Operators
Passing Variables to Functions
Returning Values from Functions
Creating Custom-Defined Objects
Using a Prototyping Object Pattern
Searching a String for a Substring
Splitting a String into an Array
Converting an Array into a String
Checking Whether an Array Contains an Item
Adding and Removing Items to Arrays
3 Getting Started with Node.js
Looking at the Node.js Install Location
What Are Node Packaged Modules?
Understanding the Node Package Registry
Using the Node Package Manager
Searching for Node Package Modules
Installing Node Packaged Modules
Creating a Node.js Application
Creating a Node.js Packaged Module
Publishing a Node.js Packaged Module to the NPM Registry
Using a Node.js Packaged Module in a Node.js Application
4 Using Events, Listeners, Timers, and Callbacks in Node.js
Understanding the Node.js Event Model
Comparing Event Callbacks and Threaded Models
Adding Work to the Event Queue
Using nextTick
to Schedule Work
Implementing Event Emitters and Listeners
Passing Additional Parameters to Callbacks
Implementing Closure in Callbacks
5 Handling Data I/O in Node.js
Converting JSON to JavaScript Objects
Converting JavaScript Objects to JSON
Using the Buffer
Module to Buffer Data
Using the Stream Module to Stream Data
Piping Readable
Streams to Writable
Streams
Compressing and Decompressing Data with Zlib
Compressing and Decompressing Buffers
Compressing/Decompressing Streams
6 Accessing the File System from Node.js
Synchronous Versus Asynchronous File System Calls
Making and Removing Directories
Renaming Files and Directories
7 Implementing HTTP Services in Node.js
Processing Query Strings and Form Parameters
Understanding Request, Response, and Server Objects
The http.ServerResponse
Object
The http.IncomingMessage
Object
Implementing HTTP Clients and Servers in Node.js
Implementing Dynamic GET
Servers
Interacting with External Sources
Implementing HTTPS Servers and Clients
8 Implementing Socket Services in Node.js
Understanding TPC Server and Socket
Objects
Implementing TCP Socket Servers and Clients
Implementing a TCP Socket Client
Implementing a TCP Socket Server
Implementing TLS Servers and Clients
9 Scaling Applications Using Multiple Processors in Node.js
Understanding the Process Module
Understanding Process I/O Pipes
Controlling Process Execution with the process
Module
Getting Information from the process
Module
Understanding the ChildProcess
Object
Executing a System Command on Another Process Using exec()
Executing an Executable File on Another Process Using execFile()
Spawning a Process in Another Node.js Instance Using spawn()
Understanding the Worker
Object
10 Using Additional Node.js Modules
Converting JavaScript Objects to Strings
Inheriting Functionality from Other Objects
Other Node Modules and Objects
11 Understanding NoSQL and MongoDB
Normalizing Data with Document References
Denormalizing Data with Embedded Documents
Understanding Atomic Write Operations
Identifying Indexing, Sharding, and Replication Opportunities
Large Collections Versus Large Numbers of Collections
Considering Data Usability and Performance
12 Getting Started with MongoDB
Building the MongoDB Environment
Accessing MongoDB from the Shell Client
Creating a User Administrator Account
Creating a Database Administrator Account
Displaying a List of Databases
Displaying a List of Collections in a Database
Finding Documents in a Collection
Adding Documents to a Collection
Deleting Documents in a Collection
Updating Documents in a Collection
13 Getting Started with MongoDB and Node.js
Adding the MongoDB Driver to Node.js
Connecting to MongoDB from Node.js
Understanding the Write Concern
Connecting to MongoDB from Node.js Using the MongoClient
Object
Understanding the Objects Used in the MongoDB Node.js Driver
Understanding the Admin
Object
Understanding the Collection Object
Understanding the Cursor
Object
Accessing and Manipulating Databases
Creating, Listing, and Deleting Databases Example
Getting the Status of the MongoDB Server
Accessing and Manipulating Collections
Collection Creation, Listing, and Deleting Example
Getting Collection Information
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
Upserting Documents in Collection
Deleting Documents from a Collection
Removing a Single Document from a Collection
15 Accessing MongoDB from Node.js
Understanding Query Options Objects
Finding Specific Sets of Documents
Limiting Fields Returned in Objects
Applying MapReduce by Aggregating Results
Understanding the aggregate()
Method
Using Aggregation Framework Operators
Implementing Aggregation Expression Operators
16 Using Mongoose for Structured Schema and Validation
Connecting to a MongoDB Database Using Mongoose
Adding Methods to the Schema Model
Implementing the Schema on the Words Database
Understanding the Query Object
Setting the Query Database Operation
Setting the Query Database Operation Options
Understanding the Document Object
Finding Documents Using Mongoose
Adding Documents Using Mongoose
Updating Documents Using Mongoose
Removing Documents Using Mongoose
Aggregating Documents Using Mongoose
Using the Validation Framework
Implementing Middleware Functions
Selecting a Partitioning Method
Deploying a Sharded MongoDB Cluster
IV: Using Express to Make Life Easier
18 Implementing Express in Node.js
Implementing a Template Engine
Rendering Templates in a Response
19 Implementing Express Middleware
Assigning Middleware Globally to a Path
Assigning Middleware to a Single Route
Adding Multiple Middleware Functions
Applying Basic HTTP Authentication
Implementing Session Authentication
21 Getting Started with Angular
Separation of Responsibilities
Adding Angular to Your Environment
Generating Content with the CLI
Creating a Basic Angular Application
Creating Your First Angular App
Understanding and Using NgModule
Creating the Angular Bootstrapper
Using Inline CSS and HTML in Angular Applications
Building a Nested Component with Dependency Injection
Passing in Data with Dependency Injection
Creating an Angular Application that Uses Inputs
Interacting with the Component
Class in Expressions
Using TypeScript in Angular Expressions
Creating a Custom Attribute Directive
Creating a Custom Directive with a Component
27 Events and Change Detection
Emitting a Custom Event to the Parent Component Hierarchy
Handling Custom Events with a Listener
Implementing Custom Events in Nested Components
Deleting Data in a Parent Component from a Child Component
Watching for Data Changes with Observables
28 Implementing Angular Services in Web Applications
Understanding Angular Services
Sending HTTP GET
and PUT
Requests with the http
Service
Implementing the HTTP Response Callback Functions
Implementing a Simple JSON File and Using the http
Service to Access It
Implementing a Simple Mock Server Using the http
Service
Implementing a Simple Mock Server and Using the http
Service to Update Items on the Server
Changing Views with the router
Service
Implementing a Router with a Navigation Bar
Implementing a Router with Parameters
29 Creating Your Own Custom Angular Services
Integrating Custom Services into Angular Applications
Adding an Angular Service to an Application
Implementing a Simple Application that Uses a Constant Data Service
Implementing a Data Transform Service
Implementing a Variable Data Service
Implementing a Service that Returns a Promise
Implementing an Angular Application that Uses the Animation Service
Implementing an Angular Application that Zooms in on Images
Implementing an Angular Application that Enables Drag and Drop
3.139.97.53