Node JS
Description
NodeJS is an open supply framework that has been developed for developers to know and build web
applications with the assistance of JavaScript. NodeJS uses an event-driven, non-blocking IO model and
server-side JavaScript atmosphere. NodeJS is mainly centered on several important ideas in it like file
system working, streams, buffers and building communications protocol(http) server with NodeJS.
Introduction
Foundation
- The Node.js framework
- Installing Node.js
Using Node.js to execute scripts
- Node Projects
- The Node Package Manager
- Creating a project
- The package. son configuration file
- Global vs. local package installation
- Automating tasks with Gulp
HTTP
- The HTTP protocol
- Building an HTTP server
- Rendering a response
- Processing query strings
- Using Representational State Transfer
- Configuring TLS
File System
- Synchronous vs. asynchronous I/O
- Path and directory operations
- dirname and __filename
- Asynchronous file reads and writes
Buffers, Streams, and Events
- Using buffers for binary data
- Flowing vs. non-flowing streams
- Streaming I/O from files and other sources
- Processing streams asynchronously
- Configuring event handlers
- Modules and Unit Testing
- Modularization
- The CommonJS and RequireJS specifications
- Defining modules with exports
- Modules are singletons
- Creating a package
- Module scope and construction
- Unit testing frameworks
- What to test and how to test it
- Building unit tests with Mocha
Express
- The model-view-controller pattern
- Defining Jade and Handlebars templates
- Building a front-end controller
- Defining routes
- Creating actions
- Configuring Express to use Handlebars
- Using REST
- Reading POST data
- Building Handlebars helpers
- Adding middleware
Data Sources
- How Node.js connects to databases
- RDBMS databases and NoSQL databases
- connecting to RDBMS and NoSQL databases
- Performing CRUD operations
- Building client requests to web services