NodeJS

All things node!

Watch User Created Playlist (59)

This playlist is user created.

pro-course-rss-logo

PRO RSS Feed

Manage Memory and Garbage Collection in Node.js

P

Creating a Fake API with Hapi For Your Client-Side Application

Use virtual properties with Mongoose and MongoDB

P

Including dependencies in your AWS Lambda function

P

Use AWS Lambda and API Gateway to return resume data

Trying new versions of Node.js with NVM

P

Scraping Data from Sites with Login Forms with Nightmare

P

Build a Simple HTTP Server with Node.js

P

Scraping Dynamic JavaScript Websites with Nightmare

P

Publish and Share a Node.js Module

P

Web Scraping with Pagination and Advanced Selectors

P

Integrate MongoDB into your Express App

P

Handle Errors with Express Middleware

P

Use Streams in Express

P

Organize Code by Subpath in Express

P

Handle Errors with a Redirect in Express

Save and Delete Content in Express with HTTP Verbs

P

Serve static files with express

P

Use Template Engines with Express

P

Define dynamic routes through Express

P

Create a Basic Server with Express

Create a tcp server using the Node.js Net Module

P

Sequelize: Getters, Setters and Virtual Columns

P

Sequelize: Class & Instance Methods

P

Sequelize: Model & Column Casing

P

Web Scraping Images with Node, Xray, and Download

P

Intro to Web Scraping with Node and X-ray

Install packages in a Node.js application using npm

Sequelize: Validating Models

Export Modules in Node.js

P

Create a Simple Node.js Module

P

Sequelize: Querying Basics using findAll

Understand Node.js Buffers

Installing Node.js and NPM on Windows

Understand Global Namespace in Node.js

Understand the node.js process object

Sequelize: Model Definition Basics

Understand Callbacks in Node.js

P

Use the node.js REPL shell

Controlling runaway apps using pm2

Passing environment variables to node.js using pm2

P

Restarting your node.js app on code change using pm2

Logging with PM2

P

Configuring PM2 for Node applications

P

Using PM2 To Keep Your Node Apps Alive

Using npm link to use node modules that are "in progress"

Creating Demo APIs with json-server

Using npm run to launch local scripts

P

Introduction to Browserify Part 2

P

Introduction to Browserify Part 1

Configuring npm package.json scripts

P

CLI node modules

P

npm install

P

npm init

P

CommonJS Basics Introduction

What are CommonJS Modules?

Migrate to Express 4

Select by ID with Mongoose and Express

P

First API with Node.js, Express and MongoDB

node tutorial about Manage Memory and Garbage Collection in Node.js

Manage Memory and Garbage Collection in Node.js

8:40 node PRO

In this lesson, you will learn how to use view and interpret the garbage collection activity of your node.js app via the console. You will also learn how to take heapdump snapshots and analyze them with Chrome Developer Tools to identify possible memory leaks. A sample app with a known memory leak is provided as part of the walk-through to illustrate how to use the tools in your own environments.

node tutorial about Creating a Fake API with Hapi For Your Client-Side Application

Creating a Fake API with Hapi For Your Client-Side Application

3:56 node

When developing client-side applications, you may find you're in the situation where you require data from a server-side API that is not yet available. The lesson will teach you how to make use of the hapi-dummy-api plugin to create an API that will return fake data to your client-side application.

node tutorial about Use virtual properties with Mongoose and MongoDB

Use virtual properties with Mongoose and MongoDB

8:59 node PRO

Virtual properties are a great way to add some semantics to your data layer and abstract any shortcomings of the underlying schema. This lesson demonstrates virtual getters and setters in Mongoose, and how to integrate their use in your Express server.

node tutorial about Including dependencies in your AWS Lambda function

Including dependencies in your AWS Lambda function

5:07 node PRO

This lesson teaches you how to use dependencies, such as faker.js in your Lamdba functions. We will update the lambda code from the Lambda and API Gateway lesson to generate random work history and endorsements using the faker npm module then upload our code to Lambda and test.

node tutorial about Use AWS Lambda and API Gateway to return resume data

Use AWS Lambda and API Gateway to return resume data

5:35 node

In this lesson, you will learn how to create a simple AWS Lambda function to submit a name via an API Gateway and return a resume for that person. At the end of the lesson, you will be able to create a Lambda function, and API Gateway, and understand how to submit data via the API Gateway that will be accessible via the Lambda function

node tutorial about Trying new versions of Node.js with NVM

Trying new versions of Node.js with NVM

4:26 node PRO

It's possible to install and run multiple versions of Node.js using a project called NVM. In this lesson we'll walk though the installation, how to try out Node.js version 4.0.0 & even how to configure Webstorm to use any nvm-installed version. Note: NVM works on Mac OSX and Linux only. For a Windows version (with the same commands) see https://github.com/coreybutler/nvm-windows or https://github.com/hakobera/nvmw

node tutorial about Scraping Data from Sites with Login Forms with Nightmare

Scraping Data from Sites with Login Forms with Nightmare

3:00 node PRO

Many pages you'll want to grab data from will require you to log in first. This video demonstrates how to log in and grab whatever data off the page you will need.

node tutorial about Build a Simple HTTP Server with Node.js

Build a Simple HTTP Server with Node.js

4:08 node PRO

In this lesson, you will learn how to build a simple http server that serves different content based on routes (a.k.a. the url requested by the client) as well as the http method used.

node tutorial about Scraping Dynamic JavaScript Websites with Nightmare

Scraping Dynamic JavaScript Websites with Nightmare

2:43 node PRO

Many websites have more than just simple static content. Dynamic content which is rendered by JavaScript requires browser to be able to scrape data. This video demonstrates how to use Nightmare (which is a wrapper around Electron) to launch a url and scrape dynamic data.

node tutorial about Publish and Share a Node.js Module

Publish and Share a Node.js Module

4:30 node PRO

Sharing code and extending functionality in node.js is often done with modules. In this lesson, you will learn how to use npm init to scaffold a new module, verify proper installation, and identify the components needed to publish your module to public and private registries.

node tutorial about Web Scraping with Pagination and Advanced Selectors

Web Scraping with Pagination and Advanced Selectors

3:29 node PRO

When web scraping, you'll often want to get more than just one page of data. Xray supports pagination by finding the "next" or "more" button on each page and cycling through each new page until it can no longer find that link. This lesson demonstrates how to paginate as well as more advanced selectors for when links are difficult to scrape.

node tutorial about Integrate MongoDB into your Express App

Integrate MongoDB into your Express App

9:09 node PRO

This lesson will walk you through replacing the app's file system reliance with a live MongoDB database. We'll also use a popular ORM library to manage our database operations.

node tutorial about Handle Errors with Express Middleware

Handle Errors with Express Middleware

5:28 node PRO

Middleware is what Express apps are made of. While the term may be unfamiliar, the techniques and concepts aren't. This lesson will round out your understanding of the various types of middleware and how to use them.

node tutorial about Use Streams in Express

Use Streams in Express

6:59 node PRO

Streams are a big part of Node's famous non-blocking I/O, and Express lets you take full advantage of them. This lesson demonstrates how to integrate streams into your server to improve performance and simplify your code.

We will look at .creatReadStream, .createWriteStream, and .pipe to read and write from streams.

node tutorial about Organize Code by Subpath in Express

Organize Code by Subpath in Express

3:59 node PRO

As your application grows, it's easy to end up with a long list of route handlers and helper functions. In this lesson we'll look at strategies for keeping things organized and manageable.

We will move individual subpaths into their own file by using .router to create an instance of the Express router.

node tutorial about Handle Errors with a Redirect in Express

Handle Errors with a Redirect in Express

6:48 node

Take your routing skills to the next level and learn to recover from errors, initiate downloads, and go beyond simple request and response. When we get a route that does not match we don't want the page to just error out. With .redirect we can send the user to an error page and display a helpful message.

We will go on to see how to download a file with .download and track behavior with get.all.

node tutorial about Save and Delete Content in Express with HTTP Verbs

Save and Delete Content in Express with HTTP Verbs

7:04 node PRO

In this lesson you will learn how to support data modification by handling HTTP verbs besides GET. We will look at how to edit, save, and delete content with .put and .delete.

node tutorial about Serve static files with express

Serve static files with express

3:20 node PRO

Sometimes you just need to serve existing files. In this lesson we'll examine how to use functionality built into Express to do just that.

node tutorial about Use Template Engines with Express

Use Template Engines with Express

3:20 node PRO

Template engines allow you to define your UIs in a declarative manner while maintaining a dynamic, data driven presentation layer. This lesson will demonstrate how to use template engines that have built-in support for Express as well as engines without explicit Express support.

node tutorial about Define dynamic routes through Express

Define dynamic routes through Express

4:30 node PRO

Routing is a fundamental aspect of Express. This lesson demonstrates how to define dynamic routes and access route parameters in your code.

node tutorial about Create a Basic Server with Express

Create a Basic Server with Express

4:24 node

In this lesson we will initialize our Express application using npm init.

After loading express through npm we will look at a couple basic functions Express exposes to us such as .get and .send. This will allow basic interaction via the url.

We will also see how using a package like nodemon can allow for rapid iteration when developing an application.

node tutorial about Create a tcp server using the Node.js Net Module

Create a tcp server using the Node.js Net Module

3:54 node PRO

In this lesson, you'll learn how to include the built-in node.js 'net' module in your application and create a tcp server. You will learn about the different event listeners used, how to specify specific ports and addresses for your server, and identify where each section of your code is used in the server lifecycle.

node tutorial about Sequelize: Getters, Setters and Virtual Columns

Sequelize: Getters, Setters and Virtual Columns

4:27 node PRO

Sequelize attribute getters and setters are a convenient way to encapsulate extra logic for model properties. In this video, we'll cover adding getters and setters to enhance and even virtualize a column.

node tutorial about Sequelize: Class & Instance Methods

Sequelize: Class & Instance Methods

2:32 node PRO

Models in the Node.js ORM, Sequelize, can be expanded with both class level and instance level functions. This video will show you how to extend your models to add helpers or business logic, and explain the methods execution scope.

node tutorial about Sequelize: Model & Column Casing

Sequelize: Model & Column Casing

2:38 node PRO

Javascript and database systems tend to be at odds with regard to how tables and columns should be named. Sequlize provides all the tools necessary to satisfy naming conventions in both your Node.js code and in your SQL database.

node tutorial about Web Scraping Images with Node, Xray, and Download

Web Scraping Images with Node, Xray, and Download

3:07 node PRO

Node makes scraping images off the web extremely easy using a couple handy packages: Xray and Download. Simple scrape the img tag, grab all the src attributes, filter out images you don't want, then hand them over to Download to grab them.

node tutorial about Intro to Web Scraping with Node and X-ray

Intro to Web Scraping with Node and X-ray

2:03 node

Node and Xray have made web scraping a really simple affair. This video introduces you to the process of scraping all of the "a" tags off of a url and saving them to a .json file.

node tutorial about Install packages in a Node.js application using npm

Install packages in a Node.js application using npm

8:14 node

In this lesson, you will learn how to find packages to add functionality to your application. You will also learn some valuable tips on how to choose a stable, supported package. We also demonstrate how to install packages using npm and the two simple rules to understand when you should install globally with the -g flag or install the package locally. The dependency section of package.json is used to show how to manage dependencies for both production and development packages. Finally, the caret (^), tilde(~), and star (*) wildcards are explained to control which versions your package is compatible with as well as installing package dependencies from git repos.

node tutorial about Sequelize: Validating Models

Sequelize: Validating Models

3:24 node

The Node.js ORM, Sequelize, has a powerful system for validating both models and individual columns. This video covers a handful of the more than 30 built-in validators, as well as writing custom validators from scratch.

node tutorial about Export Modules in Node.js

Export Modules in Node.js

5:50 node PRO

In this lesson, you will learn the difference between the exports statement and module.exports. Two examples are demonstrated, each accomplishing the same task but one using export statements and one using module.exports. You will also learn the basic thumb rule to identify which is appropriate for your current needs.

node tutorial about Create a Simple Node.js Module

Create a Simple Node.js Module

6:23 node PRO

In this lesson, we introduce modules: what they are and how to use them. You'll learn:
how to create a simple module and export the functions to be accessed elsewhere
how to include code from your module in files within your application
the three rules node uses to find the modules you require
the hierarchy node uses to determine which modules take precedence
which file extensions node can automatically detect when requiring modules

node tutorial about Sequelize: Querying Basics using findAll

Sequelize: Querying Basics using findAll

1:57 node

Sequelize has a powerful query mechanism, this lesson teaches the basics of querying using the findAll function.

node tutorial about Understand Node.js Buffers

Understand Node.js Buffers

10:30 node

In this lesson, we cover the Node.js Buffer object in detail. Not only will you learn that the buffer object is a reference to a memory space outside of the V8 engine, but you will learn practical methods to access it, modify it, and convert it to standard Javascript objects that can be used by your code. Examples and discussion are provided for using the toString() method, determining the byte length of the buffer, writing to a buffer, how to avoid truncating data, comparing buffers for equality using both compare() and equals(), and copying buffers using slice().

node tutorial about Installing Node.js and NPM on Windows

Installing Node.js and NPM on Windows

1:13 node

Welcome to the Ionic Quickstart for Windows video series! In this inaugural lesson, we install Node.js and Node Package Manager (NPM). We need to install Node and NPM because Ionic is, in fact, a Node package.

node tutorial about Understand Global Namespace in Node.js

Understand Global Namespace in Node.js

4:42 node

In this lesson, we introduce the node global namespace object and demonstrate how global variables in node may not behave the way you think they do. We also briefly discuss the global 'require' object and how it operates in the global namespace.

node tutorial about Understand the node.js process object

Understand the node.js process object

6:26 node

In this lesson, we introduce the process object, part of the node.js global namespace. The process object is extremely useful for identifying information about the runtime environment of your node app such as the version of node, the arguments passed to the node executable, the current working directory, and the nextTick function. All of these are discussed and illustrated with examples in this lesson.

node tutorial about Sequelize: Model Definition Basics

Sequelize: Model Definition Basics

2:37 node

Sequelize is an Object Relational Mapper (ORM), which simplifies interacting with relational databases by abstracting away the need to use SQL directly. This lesson introduces defining models with Sequelize in Node.js.

You will need the Postgres database for this lesson! For Mac users, postgressapp makes this easy.

node tutorial about Understand Callbacks in Node.js

Understand Callbacks in Node.js

7:03 node PRO

In this lesson you will learn what callbacks are, how to use them and why we use them in our Node applications. We start with a simple javascript function and build a second function that uses it as a callback to understand the basic operation of a callback. From there, we create a few more functions that help illustrate how using callbacks can help us keep our code legible and organized as well as allowing us to use generic functions that can bring in extra functionality when needed via the callback.

node tutorial about Use the node.js REPL shell

Use the node.js REPL shell

4:19 node

In this lesson, you will learn how to use the interactive Node.js REPL (Read - Evaluate - Print - Loop) shell. The REPL shell allows you to enter javascript directly into a shell prompt and have the results evaluated by the node.js engine immediately. This is extremely useful for testing, debugging, or experimenting with new features to understand how they work. Topics covered include creating variables, functions, the reserved underscore ( _ ) character, REPL commands as well as saving and loading your session to prevent losing work.

node tutorial about Controlling runaway apps using pm2

Controlling runaway apps using pm2

3:37 node

This video shows how to enable features in your pm2 config file that allow you to prevent runaway apps from bringing your server down. Setting max memory used, number of running processes allowed and maximum restart attempts are all covered.

node tutorial about Passing environment variables to node.js using pm2

Passing environment variables to node.js using pm2

1:27 node PRO

In this video, you will learn how to pass environment variables to your node.js app using the pm2 config file. This is useful for setting options inside your app such as production or development.

node tutorial about Restarting your node.js app on code change using pm2

Restarting your node.js app on code change using pm2

3:04 node

In this video, learn how to automatically restart your node.js app using pm2 when the code for your app changes. You will also learn how to exclude files and directories from restarting your app (such as static assets, css, images, etc.).

node tutorial about Logging with PM2

Logging with PM2

3:16 node PRO

This lesson shows you how to redirect pm2 logs to a specific folder, such as the Linux standard /var/log folder.

node tutorial about Configuring PM2 for Node applications

Configuring PM2 for Node applications

3:22 node PRO

In this lesson, you will learn how to configure node apps using pm2 and a json config file.

node tutorial about Using PM2 To Keep Your Node Apps Alive

Using PM2 To Keep Your Node Apps Alive

5:24 node

Learn how to install, configure and use pm2, the popular node.js process manager to keep your node apps alive whenever things go wrong.

node tutorial about Using npm link to use node modules that are "in progress"

Using npm link to use node modules that are "in progress"

3:07 node

It is some times convenient, even necessary, to make use of a module that you are working on before it has been published to the node package manager (npm). The npm link command makes this simple.

node tutorial about Creating Demo APIs with json-server

Creating Demo APIs with json-server

6:02 node

json-server makes it extremely easy to setup robust JSON apis to use for demos and proof of concepts. John walks you through the process of using pre-built json files for a server and how to generate larger datasets using lodash and faker.

node tutorial about Using npm run to launch local scripts

Using npm run to launch local scripts

2:11 node PRO

npm run allows you to configure scripts inside of your package.json file which can access locally installed node packages. If you're comfortable with this technique, you can also grunt, gulp, or other build tools by customizing your scripts and saving them inside of your package.json file. With this approach, when a developer starts a new project with your package.json, they can simply run npm install then npm run yourscript without having to install any node packages globally.

node tutorial about Introduction to Browserify Part 2

Introduction to Browserify Part 2

1:44 node PRO

Browserify allows you to leverage 10s of thousands of javascript modules available in the Node Package Manager (npm) in your browser apps.

node tutorial about Introduction to Browserify Part 1

Introduction to Browserify Part 1

4:36 node

Browserify is a tool that brings node.js style development to the browser.

node tutorial about Configuring npm package.json scripts

Configuring npm package.json scripts

3:04 node PRO

With a node package manager's (npm) package.json script property, you can preconfigure common tasks like running unit tests with npm $SCRIPT_NAME

node tutorial about CLI node modules

CLI node modules

2:07 node PRO

Many node modules provide a command line interface. In this lesson, we'll look at how to use them, as well as how to avoid npm install -g for "global" tools.

node tutorial about npm install

npm install

2:26 node PRO

npm install provides a convenient way to manage your node.js dependencies.

node tutorial about npm init

npm init

1:29 node PRO

npm init provides an interactive step-by-step interface for creating a package.json

node tutorial about CommonJS Basics Introduction

CommonJS Basics Introduction

3:18 node

CoomonJS modules provide a clean syntax for importing dependencies. This lesson will take a look at the basics of using CommonJS modules.

node tutorial about What are CommonJS Modules?

What are CommonJS Modules?

3:02 node

CommonJS modules provide a clean way to import dependencies in JavaScript.

node tutorial about Migrate to Express 4

Migrate to Express 4

1:58 node

Express 4 is almost ready for release. The previous lessons looked at Express 3, but will use Express 4 going forward. This lesson will explain some of the main breaking changes.

node tutorial about Select by ID with Mongoose and Express

Select by ID with Mongoose and Express

2:44 node PRO

Mongoose allows you to easily select resources by ID from your MongoDB. This is an important aspect to creating an API.

node tutorial about First API with Node.js, Express and MongoDB

First API with Node.js, Express and MongoDB

6:44 node

Learn how to import data into your MongoDB and then use Express to serve a simple Node.js API.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?