Please enable JavaScript.
Coggle requires JavaScript to display documents.
NODE JS - Coggle Diagram
NODE JS
Node.js Packages
Global Node.js Packages
Using require with Global modules
Package.json and require
NPM
package.json
Refresh the node_modules
Listing all Dependencies
Saving Dependencies
Removing a Dependency
Installing an NPM package
package.json Online Dependency Tracking
Modules recap
JSON
Loading JSON in Node.js
The JSON Global
Beginner's Introduction to JSON
popular Node.js Packages
Handling Command Line Arguments
Handling Date/Time Using Moment
Underscore
Customizing Console Colors
Revisiting Node Modules
Folder-Based Modules
Advantages of node_modules
Scanning for node_modules
Module Caching and node_modules
Semantic Versioning
Semantic Versioning in NPM / package.json
Updating Dependencies
Simplifying Callbacks
Providing a Promise + nodeback Interface
Further Notes on the Promise API
Promise Library Compatibility
Inspecting the State of Promises
Ungracefully Terminating a promise chain (intentionally)
Parallel Flow Control
Promises Supports Other Promises as a Value
Converting Callbacks to Promises
Interfacing with nodeback
Converting Non-nodeback Callback Functions
Generators
Motivation for Generators
Power of generators in JavaScript
Introduction to Promises
Promise States
The Then and Catch Basics
Create a Promise
Chain-ability of Then
Promises and Generators
The Future
The Callback Hell
Loops in an Async World
Error Handling
If/Else in an Async World
Persisting Data
MongoDB Using Node.js
Update a Document
Update Operators
Mongoose ODM
Connecting to MongoDB
Mongoose Schema and Model
Important MongoDB Concepts
MongoDB_id field
MongoDB Document Format
Using a MongoDB as a Distributed Session Store
Installing MongoDB
Running Your First Server
The MongoDB REPL
Understanding the Binaries
Managing MongoDB
Introduction to NoSQL
What is a Key-Value Database?
Why NoSQL?
What is a Document Database?
Introducing Express
Express Response Object
Simplifying Send
Express Request Object
Making Request and Response Cross Visible
Popular Connect/ExpressJS Middleware
Cookie-Based Sessions
Compression
Handling Cookies
Time-out Hanging Requests
Accepting JSON Requests and HTML Form Inputs
Listing Directory Contents
Serving Static Pages
Understanding REST
Basics of Express
Express Application Routes
A Deeper look at the path option
Parameter-Based Routing
Creating a route object
Express Router Object
Understanding Node JS
Variables
Numbers
Arrays
Object Literals
Boolean
Functions
Immediately Executing Functions
Anonymous Functions
Functions 101
Higher-Order Functions
Closures
Understanding NodeJS performance
Traditional Web Servers using a Thread Pool
The NGINX way
Traditional Web Servers Using a process per Request
Node.js Performance Secret
The I/O Scaling Problem
More NodeJS Internals
Data-Intensive Applications
V8 JavaScript Engine
Thread Starvation
More JavaScript
Truthy and Falsy
Revealing Module Pattern
null
Understanding this
Exacty Equality
Understanding Prototype
Default Values
Error Handling
Everything is a reference
Debugging
Node's Built-in Debugger
Node-inspector
The debugger Statement
Remote Debugging Node.js
Remote debugging with node-inspector
The Console Object
A quick way to get the call stack
print to stderr
Simple Benchmark
Simple Logging
Node.js Configuration in WebStorm
Deployment and scalability
Core AWS Concepts
Why Amazon Web Services
AWS console
EC2
Which EC2 AMI?
EC2 Instance Types
EBS
Key Pair
VPC
Creating your first EC2 Instance
Create a Key Pair
Configuring the Security Group
Provisioning an Instance
Node.js Clustering
The Ideal Worker Count
Handling HTTP Requests in Workers
Spawning Workers
Communicating with the master
Connecting to the EC2 Instance for the first time
Install node.js and NPM
Allowing Global Package Installation
Keeping your server safe
Running your Node.js Application in AWS
Setting up a SSH connect script
Ensuring Uptime
Using Forever
Front-End Basics
Introduction to Twitter Bootstrap
Set Up a simple Angular JS application
Directives in AngularJS
Controller and $scope
Modules in AngularJS
Why AngularJS?
Creating a Simple To-do list application
Creating a REST API
Wire up the Front End with the REST API
What is SPA?
Core Node.js
Important Globals
filename and dirname
process
Timers
Buffer
console
global
Core Modules
fs Module
os Module
Path Module
util Module
Consuming Core Modules
Node.js File-Based Module System
Node.js Exports
Modules Best Practices
Node.js require Function
Reusing Node.js Code in the Browser
Setting Up RequireJS
Playing with AMD
Introducing AMD
Converting Node.js Code into Browser Code
Getting Started with HTTP
Creating Your Own File Web Server
Serving Base HTML
Serving a Directory
Introducing Connect
Mounting Middleware by Path Prefix
Using an Object as Middleware
Creating a Connect Middleware
Creating a Configurable Middleware
Creating a Bare-Bones Connect Application
The Power of Chaining
Basics of Node.js HTTP
Using a Debugging proxy
Key Members of the Response Steram
Inspecting Headers
Key Members of the Request Stream
HTTPS
Generating Keys
Create an HTTPS Server
Asymmetric Cryptography
Use HTTPS by Default
Testing
Mocha
mocha API
Async Testing
Creating and running a basic test
Mocha command line options
Installing mocha
Chai
Additional assertations in chai
Chai Plug ins
BDD Style assertations
Assert
Events and Streams
Nodejs Events
Creating Your Own Event Emitters
Process Events
EventEmitter class
Streams
Consuming Readable Streams
Writing to Writable Streams
Pipe
Creating Your Own Stream
Classical Inheritance in JavaScript
The Proper Node.js Way
Overriding Functions in Child Classes
The Constructor Property
Checking Inheritance Chain
Arriving at an Inheritance Pattern
Deeper Understanding of the INternals of util.inherits
Setting up Nodejs