Learning Node.js
37 lectures 02:58:54
Learning Node.js - The Course Overview
This video gives an overview of the entire course.
Installing Node on Linux
The goal of this video is to understand how easy it is to install Node.js on a Linux machine
• Go to the official website to get the download instructions
• Configure the package manager to download the correct package
• Verify the installation result
Installing Node on Windows
In this video we will see how to easily install Node.js on a Windows platform
• Go to the official website to get the download instructions
• Run the graphical wizard to install node
• Verify the installation result
Installing Node on Mac OS
This video will help us check how to install Node.js on Mac OS platform
• Go to the official website to get the download instructions
• Run the graphical wizard to install node
• Verify the installation result
Writing Your First Node App
Get a quick start on writing a node application in this video
• Set up the project by creating the package.json metadata file
• Start writing a simple web server using node bundled module
• Test run the web server
Creating a Simple Web Server
The goal of this video is to create a web application that can handle request parameters.
• Learn about the HTTP request object
• Pass parameters through the query string in the GET method
• Understand global and local variables
Using NPM to Install Libraries
In this video, we will see how to use npm to manage third-party node packages and libraries.
• Understand local package install
• Understand global package install
• Get familiar with some frequently used npm commands
Scaffolding an Express.js Web App
Take a look at writing a simple express web application in this video.
• Install express package
• Write an express web application
• Add web server log by using morgan
Understanding Routes and Actions
Check out the use of basic routes and action handlers of express in this video.
• Learn about express routes
• Add multiple routes and action handlers
• Handle request parameters in express
Serving HTTP Responses
Understand and use the HTTP response object is what we are looking at in this video.
• Understand express middleware
• Add an error handler
• Set the HTTP header attributes and response status code
Middleware and Serving Static Files
Learn how to extend the functionalities of express through middleware with the help of this video.
• Introduce the basic pattern of using express middleware
• Install and configure some commonly used middleware methods
• Give a middleware example of serving static files in an express app
Using Template Engine – Jade
In this video, we will see the use of the Jade template engine to simplify HTML development.
• Install and configure Jade
• Introduce the Jade language and its features
• Build a sample Jade page to get hands-on experience
Using Template Engine – EJS
The goal of this video is to take a look at a popular template engine for express, Embedded JavaScript.
• Get started with the basics of EJS and its syntax
• Build a sample page with EJS and express
Adding Responsiveness with Bootstrap
Let's look at making our express app responsive, in this video.
• Introduce bootstrap
• Install bootstrap to our web app
• Build a landing page using bootstrap and test it with browser developer tools
Handling Parameters
In this video, we'll see how to build a data-entry form and interact with the express backend.
• Build a data-entry form using bootstrap template
• Install and configure body-parser middleware to parse form parameters
• Write the post method handler to use the parsed parameters in express
Introducing the Event Loop
Understand the asynchronous nature of node by the event loop.
• Explain the anatomy of the event loop
• Describe the asynchronous processing model for the blocking I/O operations
• Write a testing program to illustrate the asynchronous nature of node
Understanding callbacks and Error-First Pattern
Understand callback and callback hell.
• Explain what a JavaScript callback is
• Explain what a Node-style callback is
• Introduce the callback hell problem
Using async.js Library
In this video, we are going to take a look at how to control the asynchronous program flow and solve the callback hell problem
• Focus our attention on the async.js library
• Take a look at async.each()
• Take a look at async.parallel()
Using promises
The goal of this video is to understand how to use a promise
• Explain what a promise is
• Introduce the Q library to convert a callback-based function to a promise-based function
• Write the program code to use the Q library and promises
Making AJAX calls
In this video, we will look at how to make an AJAX client work with the express application.
• Install jQuery
• Use the jQuery.ajax method to initiate an AJAX GET request
• Write an express server app to respond to the AJAX GET request
Building RESTful Web Services
The goal of this video is to understand how to make AJAX calls for POST, PUT, and DELETE requests.
• Use the jQuery.ajax() method
• Implement the corresponding request method handlers in the express app
• Make a RESTful web service endpoint more robust and scalable
Developing REST APIs
How to return a response to an AJAX call. Let's check it out.
• Enhance the express app to process parameters
• Use JSON for data exchange
• Use jQuery to render the returned JSON response on the client web page
Mocking Up CRUD
The discussion point of this video is to make a mockup data model for lightweight development and testing.
• Refactor the express app using modules
• Use a JavaScript to simulate a database
• Develop CRUD RESTful web service endpoints with express
Testing APIs with cURL
Take a look at how easy it is to test REST APIs, in this video.
• Use the most basic but handy command line tool, curl.
• Learn about some commonly-used curl options.
• Illustrate the usage of curl by making requests to our express app
Setting Things Up
How to quickly start using MySQL in Node.js? Let's check it out.
• Install and set up MySQL
• Create a database and a table
• Prepare the project folder structure
Connecting to MySQL
This video will show you how to connect to MySQL in a Node.js program.
• Use the mysql library to connect to MySQL
• Write database queries
• Package the typical database operations in a data model
Providing REST APIs
Building a REST API server backed by MySQL will be the goal of this particular video.
• Design the HTTP request types to be supported
• Use express to provide the web service endpoints
• Test the REST APIs using cURL
Linking Up the Client
Check out how to enable the client program to call REST APIs in this video
• Use jQuery to make AJAX calls
• Handle multipart/form-data payload
• Leverage EJS to make the web pages dynamic
Finishing Touch
The goal in this video is to provide record update and deletion on the client.
• Use jQuery to make AJAX calls to the REST APIs
• Use EJS to provide dynamic web service endpoints
• Use jQuery to add dynamic filtering
Preparing MongoDB
We will discuss the setting up of MongoDB in this video.
• Install MongoDB
• Get proficient in the MongoDB shell
• Create the DB and collection for your application
Using Mongoose
The goal here in this video is to access MongoDB in Node.js.
• Install Mongoose
• Create a schema and model in Node.js
• Migrate the data in MySQL to MonogoDB
Implementing Auto-increment Counter
Simulate an auto-increment sequence in MongoDB in this video.
• Create a counter schema
• Use Mongoose pre-hook to act as an insert trigger
• Encapsulate the Mongoose APIs in a data model
Creating Version 2 REST APIs
The discussion in this video would be to understand how to support different versions of REST APIs.
• Build the new version REST API router
• Change the client-side AJAX endpoints
• Fully test the application again
Adding Configuration
Our goal in this video is to prepare the application to be deployed to production
• Install the node-config package
• Add configuration files to target different environments
• Use the NODE_ENV environment variable to switch between different environments
Scaling out with a Cluster
In this video we will check out how to run a node application in a cluster
• Use the built-in clustering mechanism
• Understand how to enable the app to run in a cluster
• Learn about arrow functions
Adding Performance Monitoring
We'll discuss in this video how can we monitor a production node.js application instance
- Install PM2
- Get familiar with PM2 typical commands
- Use PM2 to run a node application in clustering mode
What's Next?
Now that the course is complete, let's see what we did and what lies ahead of us.
- Summarize what we learnt in the entire course
- Direct to various link where the skill honed can be taken to the next level.
Learning Node.js.
37 lectures 02:58:54
Learning Node.js - The Course Overview
This video gives an overview of the entire course.
Installing Node on Linux
The goal of this video is to understand how easy it is to install Node.js on a Linux machine
• Go to the official website to get the download instructions
• Configure the package manager to download the correct package
• Verify the installation result
Installing Node on Windows
In this video we will see how to easily install Node.js on a Windows platform
• Go to the official website to get the download instructions
• Run the graphical wizard to install node
• Verify the installation result
Installing Node on Mac OS
This video will help us check how to install Node.js on Mac OS platform
• Go to the official website to get the download instructions
• Run the graphical wizard to install node
• Verify the installation result
Writing Your First Node App
Get a quick start on writing a node application in this video
• Set up the project by creating the package.json metadata file
• Start writing a simple web server using node bundled module
• Test run the web server
Creating a Simple Web Server
The goal of this video is to create a web application that can handle request parameters.
• Learn about the HTTP request object
• Pass parameters through the query string in the GET method
• Understand global and local variables
Using NPM to Install Libraries
In this video, we will see how to use npm to manage third-party node packages and libraries.
• Understand local package install
• Understand global package install
• Get familiar with some frequently used npm commands
Scaffolding an Express.js Web App
Take a look at writing a simple express web application in this video.
• Install express package
• Write an express web application
• Add web server log by using morgan
Understanding Routes and Actions
Check out the use of basic routes and action handlers of express in this video.
• Learn about express routes
• Add multiple routes and action handlers
• Handle request parameters in express
Serving HTTP Responses
Understand and use the HTTP response object is what we are looking at in this video.
• Understand express middleware
• Add an error handler
• Set the HTTP header attributes and response status code
Middleware and Serving Static Files
Learn how to extend the functionalities of express through middleware with the help of this video.
• Introduce the basic pattern of using express middleware
• Install and configure some commonly used middleware methods
• Give a middleware example of serving static files in an express app
Using Template Engine – Jade
In this video, we will see the use of the Jade template engine to simplify HTML development.
• Install and configure Jade
• Introduce the Jade language and its features
• Build a sample Jade page to get hands-on experience
Using Template Engine – EJS
The goal of this video is to take a look at a popular template engine for express, Embedded JavaScript.
• Get started with the basics of EJS and its syntax
• Build a sample page with EJS and express
Adding Responsiveness with Bootstrap
Let's look at making our express app responsive, in this video.
• Introduce bootstrap
• Install bootstrap to our web app
• Build a landing page using bootstrap and test it with browser developer tools
Handling Parameters
In this video, we'll see how to build a data-entry form and interact with the express backend Mac OS
This video will help us check how to install Node.js on Mac OS platform
• Go to the official website to get the download instructions
• Run the graphical wizard to install node
• Verify the installation result
Installing Node on Mac OS
This...