Node.js

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

COURSES 6

WATCH Bram Borggreve's COURSE

Build a Node.js REST API with LoopBack

Build a Node.js REST API with LoopBack

In this course the developer will learn how to create a LoopBack API and build it out to an API that can be used as a backend f...

15 lessons

WATCH Hannah Davis's COURSE

Create your own twitter bots

Create your own twitter bots

In this course we’ll learn how to create Twitter bots. We’ll first learn how to interface with the Twitter API using Twit.js, w...

14 lessons

WATCH Will Button's COURSE

Build Node.js APIs with OpenAPI Spec (Swagger)

Build Node.js APIs with OpenAPI Spec (Swagger)

In this course, we will build a ToDo API that stores notes using the OpenAPI Specification (Swagger). We will start with a blan...

16 lessons

WATCH Mike Frey's COURSE

Introduction to Node Servers with Hapi.js

Introduction to Node Servers with Hapi.js

hapi is a battle-tested, full-featured, framework for building web applications and services with Node.js. With integrated supp...

12 lessons

WATCH Will Button's COURSE

Introduction to Node: The Fundamentals

Introduction to Node: The Fundamentals

Understanding Node.js can have a significant positive impact on your career as a Javascript developer. Knowing how it works, ho...

14 lessons

WATCH Ben Clinkinbeard's COURSE

Getting Started with Express.js

Getting Started with Express.js

Express is a minimal web server built on Node.js that provides essential functionality for delivering web applications to the b...

11 lessons

Upload Files with Express

In this lesson we create a new Express web server app for handling file uploads and persisting them to the filesystem. We will walk through using the express-fileupload middleware module from npm t...

Mark Shust
4:21

Serve Static Files with Express

In this lesson we will find out how to serve static assets (images, css, stylesheets, etc.) with Express. We will go over writing initial boilerplate for a simple Express app, and using Express's b...

Mark Shust
1:36

Running your server forever using forever in Node.js

Previously to tackle manual restarts due to server crashes , process management tools were used. Forever is one such module that is runs on the node ecosystem. So, we need not move away from the ...

Akash Gutha
2:43

Run JavaScript in the Terminal with the Node REPL

With Node installed, you can begin running JavaScript directly in the terminal. The Node REPL allows you to execute any JavaScript expression to check the output. You can even install packages from...

John Lindquist
1:59

Create a Hello bot using Microsoft Botbuilder SDK in Node.js

Understanding the basics of botbuilder sdk by microsoft, and exploring the basic bot setup to run and respond to messages on any command line client. The botframework provides two connector classe...

Akash Gutha
2:01

Run Local DevDependencies from the Command Line with npx

In the past, you've needed to either write a package.json script or use the node_modules/.bin directory to access binaries installed in your node_modules. npx enables you to access the binaries muc...

John Lindquist
1:51

Run Any Version of a Node Tool with npx

As node projects evolve, new features are added all the time. This results in different errors or results as you're migrating from one version to another. npx allows you to try out any version you ...

John Lindquist
1:31

Setup an Nginx Proxy for a Node.js App

Learn how to setup an Nginx proxy server that sits in front of a Node.js app. You can use a proxy to control the flow of frontend requests hitting your app, as well as to achieve better performance...

Mark Shust
2:33

Use babel-preset-env with Native Node Features and Also Use Babel Plugins

In this lesson we'll show how to setup a .babelrc file with presets and plugins. Then create npm scripts that use babel-node and babel. With babel-preset-env we'll show how to target specific versi...

Jason Brown
5:19

Configure Prepack with Webpack

Great improvements and optimizations can be made to the output of bundled code. Prepack provides the ability to optimize code at build-time, producing run-time optimizations. In this lesson, we wil...

Mark Shust
2:00

Build a Basic Webhook with Micro, ngrok, and Now

This is a simple webhook example. This lesson walks you through creating a github webhook using micro, the development process of testing the webhook online by tunneling to it using ngrok, then lau...

John Lindquist
4:30

Take Screenshots of Multiple Dimensions for Responsive Sites using Nightmare

When developing responsive websites, you will constantly be resizing your browser to make sure your site is properly responding to all of the resizes. You can script this behavior by using Nightmar...

John Lindquist
2:00

FEATURED NODE.JS PLAYLISTS

Browse all Node.js lessons.

showing All 155 lessons...

Manage Configuration Values with Environment Variables

P

Proxy Requests for Local and Remote Service Parity

P

Summary & Concepts of the Twelve-Factor App

Upload Files with Express

P

Serve Static Files with Express

P

Running your server forever using forever in Node.js

P

Run JavaScript in the Terminal with the Node REPL

P

Create a Hello bot using Microsoft Botbuilder SDK in Node.js

P

Run Local DevDependencies from the Command Line with npx

P

Run Any Version of a Node Tool with npx

P

Setup an Nginx Proxy for a Node.js App

P

Filter model data in LoopBack

P

Deploy a LoopBack API project using now.sh

P

Create a free database on MongoDB Atlas

P

Create a MongoDB DataSource in LoopBack

P

Define a remote method on a LoopBack model

P

Create a boot script to run code at the start of a LoopBack API

P

Configure ACL’s to protect the LoopBack API

P

Add Operation Hooks to a LoopBack model

P

Add unit tests to a LoopBack API project

P

Add validation rules to a model in LoopBack API

P

Create a relation between two LoopBack models

P

Setup a development mode in LoopBack API using nodemon

P

Use babel-preset-env with Native Node Features and Also Use Babel Plugins

P

Host a Simple Twitter Bot Using Heroku

P

Make a Twitter Audio Bot That Composes a Song Based on a Tweet

P

Retrieve And Tweet Information from Google Spreadsheets

P

Work with Users in Twit.js

P

Make a Bot That Analyzes Human Emotions in Photos with Google Cloud Vision API

P

Make A Story Generation Bot with Tracery

P

Tweet Media Files with Twit.js

P

Make A Bot That Sounds Like You with RiTa.js

P

Use the Twitter Search API with Twit.js

P

Use the Twitter Stream API with Twit.js

P

Interact with Tweets with Twit.js

P

Post Statuses with Twit.js

P

Set Up a Basic Twitter Bot with Twit.js

P

Configure Prepack with Webpack

P

Build a Basic Webhook with Micro, ngrok, and Now

P

Take Screenshots of Multiple Dimensions for Responsive Sites using Nightmare

P

Test for HTTP 400 responses with Mocha and Chai

P

Test Node RESTful API with Mocha and Chai

P

Setup Nodemon to automatically restart the server

P

Persist in-memory data to a file when developing Node.js LoopBack API's

P

Create a model to persist data in a Node.js LoopBack API

Create a modern web API using Koa v2 and ES2017

P

Initialize a LoopBack Node.js Project through the CLI

Use Google Sheets with Node and Express in Fun Side Projects

P

Difference between tilde (~) and caret (^) in package.json

P

Use ES6 style Promises with Node.js

P
node tutorial about Manage Configuration Values with Environment Variables

Manage Configuration Values with Environment Variables

1:52 node PRO

Storing configuration in files instead of the environment has many downsides, including mistakenly checking in the wrong configuration in the wrong environment, coupling configuration with code, and scaling issues in larger server architectures.

We’ll learn how to update app code to look at environment variables for configuration values instead of using configuration files, and different approaches for managing environment variables between dev/stage/prod.

express tutorial about Proxy Requests for Local and Remote Service Parity

Proxy Requests for Local and Remote Service Parity

2:20 express PRO

High availability apps require that no distinction be made between local and remote services. Attached resources should be accessed by environment variables, and in doing so allow you to swap out one attached resource for another.

In this lesson we will setup a reverse proxy that directs image path requests and routes them through a defined server URL. By doing so, we decouple server requests for images which allows for easy switching from locally-served image assets to a CDN by simply updating an environment variable.

egghead tutorial about Summary & Concepts of the Twelve-Factor App

Summary & Concepts of the Twelve-Factor App

0:34 egghead

The twelve-factor app is a development and deployment methodology for building apps with present-day concepts. Following it will ensure your app can be deployed easily and scaled effortlessly.

The website 12factor.net explains the concepts of the twelve-factor app. The lessons in this course each directly relate to one of the 12 factors and are presented in order. The first few go over revision control and managing the config and dependencies of your Node.js app, while the rest explain the devops of your app with Nginx & Docker, with concepts closely aligned to the 12-factor app.

express tutorial about Upload Files with Express

Upload Files with Express

4:21 express PRO

In this lesson we create a new Express web server app for handling file uploads and persisting them to the filesystem. We will walk through using the express-fileupload middleware module from npm to process file uploads, and then use the Express static middleware to serve the uploaded file as a static asset.

express tutorial about Serve Static Files with Express

Serve Static Files with Express

1:36 express PRO

In this lesson we will find out how to serve static assets (images, css, stylesheets, etc.) with Express. We will go over writing initial boilerplate for a simple Express app, and using Express's built-in middleware to serve these assets through a web server on Node.js.

node tutorial about Running your server forever using forever in Node.js

Running your server forever using forever in Node.js

2:43 node PRO

Previously to tackle manual restarts due to server crashes , process management tools were used.

Forever is one such module that is runs on the node ecosystem. So, we need not move away from the rich ecosystem of Node.js.

Use
npm
install --global forever
to
install forever module globally.

node tutorial about Run JavaScript in the Terminal with the Node REPL

Run JavaScript in the Terminal with the Node REPL

1:59 node PRO

With Node installed, you can begin running JavaScript directly in the terminal. The Node REPL allows you to execute any JavaScript expression to check the output. You can even install packages from npm and load you local JavaScript files to test how libraries and functions run.

node tutorial about Create a Hello bot using Microsoft Botbuilder SDK in Node.js

Create a Hello bot using Microsoft Botbuilder SDK in Node.js

2:01 node PRO

Understanding the basics of botbuilder sdk by microsoft, and exploring the basic bot setup to run and respond to messages on any command line client.

The botframework provides two connector classes ConsoleConnector, ChatConnector.

  1. To setup connection to the terminal we used the ConsoleConenctor class
  2. Though in production environment you would like to deploy the bot on to various platforms like facebook, skype, slack etc. the ChatConnector class provides the functionality to do this.
  3. The Chat Connector setup is a bit more complicated, yet doesn't affect the actual logic that you will build your bot on.
npm tutorial about Run Local DevDependencies from the Command Line with npx

Run Local DevDependencies from the Command Line with npx

1:51 npm PRO

In the past, you've needed to either write a package.json script or use the node_modules/.bin directory to access binaries installed in your node_modules. npx enables you to access the binaries much more easily and try out options before you settle on what you want to add to your package.json scripts.

node tutorial about Run Any Version of a Node Tool with npx

Run Any Version of a Node Tool with npx

1:31 node PRO

As node projects evolve, new features are added all the time. This results in different errors or results as you're migrating from one version to another. npx allows you to try out any version you want by simply adding the version number to the project you're using. This lesson covers using the TypeScript compiler through a different versions as async function support was added.

node tutorial about Setup an Nginx Proxy for a Node.js App

Setup an Nginx Proxy for a Node.js App

2:33 node PRO

Learn how to setup an Nginx proxy server that sits in front of a Node.js app. You can use a proxy to control the flow of frontend requests hitting your app, as well as to achieve better performance and scalability. We'll create a sample Node.js app and configure a default Nginx configuration file to proxy web requests.

node tutorial about Filter model data in LoopBack

Filter model data in LoopBack

1:16 node PRO

In this lesson we will look at the filters that can be used to retrieve and manipulate the data stored in LoopBack.

We will use Postman to interact with the /Categories and /Products endpoints.

Using the URL parameters we will apply at the various filters LoopBack has to offer: include, order, where, fields, limit and offset.

node tutorial about Deploy a LoopBack API project using now.sh

Deploy a LoopBack API project using now.sh

2:41 node PRO

In this lesson we will look at how to deploy our LoopBack API project using now.

We will install the now client, create an account and deploy our app.

Using now secrets features we will store our database connection url which we get by creating a free MongoDB Atlas database.

In order to simplify following deployments we will add a now key to our package.json where we use the name, alias and env parameters to configure our deployments. We will add some npm scripts so we can deploy our app in the desired way using npm run now.

node tutorial about Create a free database on MongoDB Atlas

Create a free database on MongoDB Atlas

1:20 node PRO

In this lesson we will create a free account on monogdb.com. After the account has been created we will create a group in MongoDB Atlas and in that group we create a free cluster. In order to create the cluster we need to provide a username and password. We create our user called admin and have the site generate our password for use. Once the cluster is created we look at where we can find the connection string.

node tutorial about Create a MongoDB DataSource in LoopBack

Create a MongoDB DataSource in LoopBack

1:44 node PRO

In this lesson we will create a dynamic datasource in LoopBack. If the API is started with the environment variable MONGODB_URL it will use this url and the loopback-connector-mongodb package to store the data in MongoDB.

In the course we will use a local MongoDB instance. If you don't have MongoDB running locally you can always create a free MongoDB Atlas database.

node tutorial about Define a remote method on a LoopBack model

Define a remote method on a LoopBack model

2:18 node PRO

In this lesson we look at extending the functionality of LoopBack models by defining a remote method.

A remote method is a method on a model exposed over a custom REST endpoint.

Using the lb remote-method command we will create the remote method meta-data in product.json. We will verify that this got created and that we see the new REST endpoint got added. Then we will create the actual method in product.js and enhance it so that the API will return an error if we want to buy a negative amount of products.

node tutorial about Create a boot script to run code at the start of a LoopBack API

Create a boot script to run code at the start of a LoopBack API

2:37 node PRO

In this lesson we will learn how to create a boot script.

We will use a boot script to create or update a predefined admin user, and give that user an Access Token. That way we don't have to log in to the API each time we want to use it as an authenticated user.

node tutorial about Configure ACL’s to protect the LoopBack API

Configure ACL’s to protect the LoopBack API

2:59 node PRO

In this lesson we will learn how to protect our API using ACL’s.

ACL stands for Access Control List and it's function is to control permissions of resources in the API. It does this by keeping a mapping between an API resource and a principal. An API resource as an API endpoint like a remote method or a whole model. A principal in LoopBack are users or applications that can be grouped in a role.

In order to get the API production ready we will protect a selection of our REST endpoints with ACL’s. We will look at how we can obtain an access token and how we can use that in our requests.

Finally we will write some unit tests to make sure that the ACL does what we expect. We enhance our test setup by exporting request with is provided by the supertest library.

In our tests we use request to verify that our endpoints return the correct HTTP status code.

node tutorial about Add Operation Hooks to a LoopBack model

Add Operation Hooks to a LoopBack model

2:39 node PRO

In this lesson we will learn how to add operation hooks to our models. In the Product model we will create a before safe observer that will check if the category we want to add the product to exists.

In our Category model we will create a before delete observer to prevent categories from being deleted when they have products.

We will create a unit test to verify that both of these operation hooks work as expected.

node tutorial about Add unit tests to a LoopBack API project

Add unit tests to a LoopBack API project

3:21 node PRO

In this lesson we will learn how to add tests to the project to make sure our API behaves as we expect.

After installing mocha and chai as devDependencies we will add test and test:watch scripts to our package.json. We will create a different datasource what we will use when running the tests by copying datasources.json to datasources.test.json and prefixing our test command with NODE_ENV=test.

We will verify that our tests run against an empty datasource. We’ll also add various tests to verify that our remote method and validation on the Product model behave as expected.

node tutorial about Add validation rules to a model in LoopBack API

Add validation rules to a model in LoopBack API

2:08 node PRO

We can add validation rules to our models to make sure the data we store in our API is how we want it.

In this lesson we will add validation rules to the Product model.

We will make sure the product name has a minimal length using the validatesLengthOf rule and that it is unique using the validatesUniquenessOf rule.

For the price property we will add a custom validation to make sure that the value entered is not a negative integer. Additionally we will show how to do an async validation using validateAsync . This can for instance be useful if you want the validation to depend on a value in the database or a remote system.

node tutorial about Create a relation between two LoopBack models

Create a relation between two LoopBack models

3:00 node PRO

A relation in LoopBack is a way to associate the data from multiple models with each other. LoopBack supports various types of relations each with a different use case.

In this lesson we will create a second model called Category and create a relation between the Category and the Product models. To do this we will first add a property to the Product model called categoryId. This will allow us to store for each Product the category it belongs to. We then move on to create the actual relationships.

Our first relationship defines that a Category hasMany Products and the second one that a Product belongsTo a Category.

After defining these relations we will use the API Explorer to see how we can interact with this related data.

node tutorial about Setup a development mode in LoopBack API using nodemon

Setup a development mode in LoopBack API using nodemon

0:29 node PRO

In this lesson we will learn to create a development mode for our server. We do this by installing nodemon as a dev dependency and creating a script tag called 'dev'.

This script tag will execute the command nodemon server/server.js --watch common --watch server.

We can execute this command by running npm run dev.

When running in development mode the server will be automatically restarted when there are changes detected in the common and server directories.

node tutorial about Use babel-preset-env with Native Node Features and Also Use Babel Plugins

Use babel-preset-env with Native Node Features and Also Use Babel Plugins

5:19 node PRO

In this lesson we'll show how to setup a .babelrc file with presets and plugins. Then create npm scripts that use babel-node and babel. With babel-preset-env we'll show how to target specific versions of node and how to use babel plugins, while not transpiling features (like async await) that are already supported by node natively.

javascript tutorial about Host a Simple Twitter Bot Using Heroku

Host a Simple Twitter Bot Using Heroku

2:18 javascript PRO

In this lesson, we’ll learn how to host a simple bot with Heroku. We'll learn how to create a new Heroku application and how to deploy our code to Heroku using git. We’ll learn how to change our project from a web app to a worker app and how to create a Procfile. We'll also see how to see output from our Heroku app with the command heroku logs.

node tutorial about Make a Twitter Audio Bot That Composes a Song Based on a Tweet

Make a Twitter Audio Bot That Composes a Song Based on a Tweet

13:09 node PRO

Make a Twitter Audio Bot That Composes a Song Based on a Tweet - In the final bot lesson, we'll compose a ditty based on a tweet, save it as an audio file, and post it to Twitter. Because Twitter only supports uploading audio in video form, we'll learn how to create a video from the MIDI file and post it to Twitter. This is a longer video since we are going over how to create this pipeline from scratch.

For more Natural Language Processing, see the course on Natural: https://egghead.io/courses/natural-language-processing-in-javascript-with-natural

We'll use RiTa to tokenize the text of a tweet and find the parts of speech:
https://rednoise.org/rita/

We'll use Jsmidigen to compose a tune in a MIDI format:
https://www.npmjs.com/package/jsmidgen

We'll also use FFMPEG, which will help us create a video from our audio and a picture:
https://ffmpeg.org/

And we'll use TiMidity to convert our MIDI file to a Wav file:
http://timidity.sourceforge.net/

You can use any image in place of the black image used in this video.

node tutorial about Retrieve And Tweet Information from Google Spreadsheets

Retrieve And Tweet Information from Google Spreadsheets

1:55 node PRO

In this lesson, we’ll learn how to retrieve and tweet data from Google Spreadsheets. We'll use Tabletop.js to make this easier. More information on Tabletop can be found at https://github.com/jsoma/tabletop.

twit tutorial about Work with Users in Twit.js

Work with Users in Twit.js

5:03 twit PRO

We’ll learn how your bot can get its list of followers, follow people, and look up friendships. We'll use Twit's GET method to get our followers at the followers/list endpoint, to get the users we follow at the friends/ids and friends/list endpoints, and to look up our friendships with the friendships/lookup endpoint. We'll also use Twit's POST method to follow someone at the friendships/create endpoint, and to send messages by posting to the direct_messages/new endpoint.

node tutorial about Make a Bot That Analyzes Human Emotions in Photos with Google Cloud Vision API

Make a Bot That Analyzes Human Emotions in Photos with Google Cloud Vision API

9:59 node PRO

With this bot, we’ll find the number of faces in a photo that is tweeted at us, and respond back with what emotions the faces are expressing, using the Google Cloud Vision API.

The Google Cloud Vision API is worth exploring, and you'll need to create an account before this lesson:
https://cloud.google.com/vision/

node tutorial about Make A Story Generation Bot with Tracery

Make A Story Generation Bot with Tracery

8:01 node PRO

Tracery is a brilliant tool to more easily create text grammars and structure. In this lesson, we’ll create a bot that tweets out tiny stories.

We'll learn what a grammar is in this context, and how to create one with Tracery. We'll first create a simple story with character, action, place, and object variables, and learn how to add modifiers. Then, we'll create a more complex one, and learn how to set variables that we want to be consistent throughout the story, such as pronouns.

More information and resources on Tracery can be found at:
https://github.com/galaxykate/tracery
and
http://www.crystalcodepalace.com/traceryTut.html

twit tutorial about Tweet Media Files with Twit.js

Tweet Media Files with Twit.js

6:30 twit PRO

In this lesson, we’ll create multiple functions to request, download, and save photos and data from NASA's API, and then have our bot upload these photos to Twitter and post them along with their descriptions. We'll also learn how to tweet videos using a video from NASA’s space archives.

node tutorial about Make A Bot That Sounds Like You with RiTa.js

Make A Bot That Sounds Like You with RiTa.js

8:26 node PRO

In this lesson, we’ll give our bot a large input of past text that we’ve written (essays, other tweets, etc.) and, using markov chains, have it create tweets that sound like ourselves!

For more information about Markov chains, see Markov Chains explained visually:
http://setosa.io/ev/markov-chains/

The RiTa library is a powerful library for working with text and text generation. See the reference here:
http://rednoise.org/rita/reference/index.php

twit tutorial about Use the Twitter Search API with Twit.js

Use the Twitter Search API with Twit.js

5:00 twit PRO

We’ll learn how to search tweets with the Twitter Search API, using Twit's GET method to get the search/tweets endpoint. We'll use the query and count parameters to get the search term(s) and number of tweets that we want. We'll learn how to get exact phrases, multiple words, one of several words, emoticons, hashtags, photos/videos, urls, and how to remove words from our results. We'll learn how to implement the safe filter and how to filter by media, website, or date. We'll learn how to get recent results, popular results, results by location, and results by language.

The search API returns for relevance, and not completeness. If you want all the tweets from a search term, you should use the stream API (which we'll go over in the next lesson).

twit tutorial about Use the Twitter Stream API with Twit.js

Use the Twitter Stream API with Twit.js

2:52 twit PRO

We’ll get a real-time stream of tweets, and learn how to filter a stream by keyword, location, and user.

twit tutorial about Interact with Tweets with Twit.js

Interact with Tweets with Twit.js

6:18 twit PRO

We’ll learn the basics of interacting with tweets, including retweeting, deleting, favoriting, and replying to tweets. We'll get our home timeline by using Twit's GET method to access the statuses/home_timeline endpoint, including the count parameter, which lets us get back a certain number of tweets. We'll also pass it a callback. We'll learn how to cycle through the data (the tweets) we get back and see what information is included. We'll learn how to retweet statuses by posting to statuses/retweet and including the tweet id. We can unretweet by posting to statuses/unretweet with the same tweet id. We'll also learn how to like a tweet by posting to favorites/create with a tweet id, and unlike a tweet by posting to favorites/destroy with a tweet id. We'll also learn how to reply to a tweet by posting to statuses/update, with a status that includes the handle of the user we're replying to and in_reply_to_status_id parameter, which is the id of the tweet we're replying to. We'll learn how to delete a tweet by posting to statuses/destroy with the tweet's id.

twit tutorial about Post Statuses with Twit.js

Post Statuses with Twit.js

1:12 twit PRO

In this lesson, our bot will tweet hello to the Twitter world! We'll do this by using Twit's POST method to post our status to the statuses/update endpoint.

twit tutorial about Set Up a Basic Twitter Bot with Twit.js

Set Up a Basic Twitter Bot with Twit.js

4:46 twit PRO

We’ll go over the basic Twitter bot setup, including how to start a project from scratch, install necessary packages, and store our private keys in environment variables.

webpack tutorial about Configure Prepack with Webpack

Configure Prepack with Webpack

2:00 webpack PRO

Great improvements and optimizations can be made to the output of bundled code. Prepack provides the ability to optimize code at build-time, producing run-time optimizations. In this lesson, we will look at configuring Prepack to use Webpack with the Prepack Webpack Plugin so we can enjoy extremely concise and optimized build scripts within our Webpack project.

javascript tutorial about Build a Basic Webhook with Micro, ngrok, and Now

Build a Basic Webhook with Micro, ngrok, and Now

4:30 javascript PRO

This is a simple webhook example. This lesson walks you through creating a github webhook using micro, the development process of testing the webhook online by tunneling to it using ngrok, then launching the webhook using zeit's now.

javascript tutorial about Take Screenshots of Multiple Dimensions for Responsive Sites using Nightmare

Take Screenshots of Multiple Dimensions for Responsive Sites using Nightmare

2:00 javascript PRO

When developing responsive websites, you will constantly be resizing your browser to make sure your site is properly responding to all of the resizes. You can script this behavior by using Nightmare to leverage Electron and it will handle all the resizing for you. Nightmare can then also takes screenshots and save them so you can make sure the site matches your designs.

mocha tutorial about Test for HTTP 400 responses with Mocha and Chai

Test for HTTP 400 responses with Mocha and Chai

2:50 mocha PRO

In this lesson, you will learn how to verify your API server is returning HTTP 400 responses when clients submit incorrect data. Returning HTTP 400 ensures that your clients are notified of the incorrect usage. Testing for them ensures your API returns errors instead of incorrect responses when supplied with incorrect data.

mocha tutorial about Test Node RESTful API with Mocha and Chai

Test Node RESTful API with Mocha and Chai

12:05 mocha PRO

In this lesson, we will use Chai's request method to test our Node application's API responses.
By the end of this lesson, you will know how to:
- install the prerequisites to use mocha and chai in your application
- test for HTTP status response codes
- test for a string of text on a page
- test for a json response and validate the properties of the object
- write tests that not only verify the response of your application, but the behavior as well

node tutorial about Setup Nodemon to automatically restart the server

Setup Nodemon to automatically restart the server

1:02 node PRO

Soon or later, we get tired of having to manually restart our Node.js application. We will install and configure Nodemon to help us with that headache.

Remember to install it as a development dependency with yarn add --dev nodemon and limit its scope with --watch [dir].

node tutorial about Persist in-memory data to a file when developing Node.js LoopBack API's

Persist in-memory data to a file when developing Node.js LoopBack API's

0:43 node PRO

In this lesson you will learn how to persist the data from the memory connector. As the name suggests, the memory connector stores the data in memory. This means that if you restart the server, the data is gone. In development mode it can be useful to store this data in a file, so it gets persisted between server restarts, and it can be easily inspected.

node tutorial about Create a model to persist data in a Node.js LoopBack API

Create a model to persist data in a Node.js LoopBack API

3:01 node

In this lesson you will learn what a LoopBack model is, you will create a Product model using the LoopbBack CLI. The product model will be based off the built-in PersistedModel which gives it basic functionality like Create, Ready, Update, Delete and some more. Using the API Explorer you can interact with the new model, store, retrieve, edit and delete the product data.

javascript tutorial about Create a modern web API using Koa v2 and ES2017

Create a modern web API using Koa v2 and ES2017

1:25 javascript PRO

We take advantage of the new Node.js features like async/await from ES2017 and the awesome yarn package-manager to create modern JSON APIs with Koa v2. Make sure you have at least Node.js 7.6.x installed.

The ctx (context) variable encapsulates a Request and Response object, they are similar to what we already know about the req and res objects from the Express.js framework, but it is more expressive and easy to understand thanks to its getters, _setters and some shortcuts. It also parses the response content and sets the Content-Type header based on the type of its body property. Finally, we can manually set the response headers and status code.

The HTTP client from the video is wuzz.

node tutorial about Initialize a LoopBack Node.js Project through the CLI

Initialize a LoopBack Node.js Project through the CLI

1:17 node

LoopBack is a framework built on top of Express for creating APIs. It allows you to create end-to-end REST APIs that can access data from many data sources such as MondoDB, PostgreSQL, MySQL or other REST APIs.

In this lesson you will learn how to install loopback-cli and create a new LoopBack API project. After creating the basic LoopBack project through the CLI, running the server will give us access to the project and API Explorer urls. The user model will be available to us because user authentication was enabled.

express tutorial about Use Google Sheets with Node and Express in Fun Side Projects

Use Google Sheets with Node and Express in Fun Side Projects

9:59 express PRO

First and foremost, DO NOT use Google Sheets for any production app. It's fine for fun side projects for your family or friends, but not much more. With those disclaimers in mind, Google sheets can be complicated to set up if you don't follow precise configuration steps. This lesson walks you through setting up Google sheets credentials, authentication, getting/appending values, then finally wrapping the sheets api with Node.js and Express to use in a simple project.

javascript tutorial about Difference between tilde (~) and caret (^) in package.json

Difference between tilde (~) and caret (^) in package.json

2:36 javascript PRO

As a beginning node.js user, you will often see the tilde (~) or caret (^) in front of the version number for dependencies managed by your package.json file. In this lesson, you will learn what each means, when to use it, the implications of each and a brief introduction to Semantic Versioning.

javascript tutorial about Use ES6 style Promises with Node.js

Use ES6 style Promises with Node.js

5:56 javascript PRO

Using promises can be confusing. In this lesson, I show you how to create promises to chain functions together in a specified order. You'll also learn how to pass the return value of promises as the input parameters of promises further down the chain. All examples in this lesson utilize native ES6 style promises, which are fully supported by recent versions of node.js without any dependencies.

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