Node.js in 7 Days
4.6 (8 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
49 students enrolled

Node.js in 7 Days

Deploy real-world Node.js applications from scratch
4.6 (8 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
49 students enrolled
Created by Packt Publishing
Last updated 12/2018
English
English [Auto-generated]
Current price: $86.99 Original price: $124.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 3 hours on-demand video
  • 1 downloadable resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Web developers who want to learn Node .js for their server-side web development and who have some knowledge of JavaScript programming will benefit from this course.
Course content
Expand all 29 lectures 02:49:17
+ Enter the World of Node.js
5 lectures 15:51

This video provides an overview of the entire course.   

Preview 02:11

In this video, we see where to get Node.js from, what version you  probably want to use, how to install it, and how to install and set up  VS Code to edit your Node applications.                         

  • Get to know where to get NodeJS and VS Code

  • Know what version of Node.js you should use

  • Install Node.js and VS Code

 

Installing Node.js and VS Code
02:23

In this video, we cover the Node Package Manager, what it is, why  it exists, and how we can use it to download packages for our Node.js  projects.                         

  • Explore what npm is and why it exists

  • Know what packages we can get and how to get them

  • Learn whether there are any alternatives to npm

 

Node Package Manager (npm)
06:58

How do we create a script in Node.js and run it, and how can we use packages that have already been published on npm?                         

  • Create your first Node.js script

  • Run your Node.js script

  • Utilize a package from npm

 

Hello World!
03:54

This video is your assignment for day one.                           

  • Take a look at the question and try solving it on your own before the next lecture

 

Assignment
00:25
+ Hello Node!
4 lectures 20:26

Newer versions of the JavaScript standard brought different styles  of writing functions. We cover one of these styles in this video.                         

  • What is an arrow function?

  • Go through the examples and see how the `this` keyword is bound

  • Know where you should use arrow functions

 

Preview 05:23

Now we cover modules and libraries, including their differences, core modules, and how to use them.                         

  • Learn the differences between a module and a library

  • What are core Node.js modules?

  • Take a look at how to use core Node.js modules

 

Modules and Libraries
03:49

In this video, we discuss getting input for your program, either from command-line arguments or direct from the user.                         

  • Write to stdin, stdout, and stderr

  • Process arguments

  • Add packages to help us

 

Getting Input from Users and Arguments
10:27

This video is your assignment for day two.                           

  • Take a look at the Question and try solving it on your own before the next lecture

 

Assignment
00:47
+ Callbacks and Promises
4 lectures 22:38

The event loop is a key aspect of programming with Node.js. We  discuss the loop, how to utilize it properly, and any key pointers to  watch out for.                         

  • What is the event loop?

  • Learn about threading

  • Code execution time

 

Working with Event Loop
07:37

Callbacks are a method for implementing asynchronicity. How can they be used and what are the best practices?                         

  • What is a callback?

  • Know why callbacks are used and explore examples

  • Learn about callback hell

 

Exploring Callbacks
06:46

Promises are an alternative to callbacks and can be used to achieve cleaner code. How can we do this and how do they work?                         

  • Learn what a promise is

  • Handle resolution and rejection

  • Combat the callback hell

 

Implementing Promises
07:25

This video is your assignment for day three.                           

  • Take a look at the Question and try solving it on your own before the next lecture

 

Assignment
00:50
+ Node HTTP and Express
4 lectures 23:41

Node.js is a good fit for a HTTP web server. We cover Node’s HTTP module and how to use it.                         

  • Explore Node’s HTTP module

  • Create an HTTP server

  • Learn about serving local files

 

Preview 06:09

Express is an HTTP framework that builds on Node’s HTTP module. We’ll examine how to use it.                         

  • Get started with Express

  • Explore how to use routes and routing

  • Serve static files with Express

 

Express Basics
06:45

How can we serve an API using Express? We investigate middleware, sharing data between routes, and sending data to clients.                         

  • Set up a new Express app and configure middleware

  • Share data between routes

  • Send data to clients

 

Running an App on Express
10:05

This video is your assignment for day four.                           

  • Take a look at the Question and try solving it on your own before the next lecture

 

Assignment
00:42
+ Testing and Debugging
4 lectures 25:30

Testing is a great way to improve your code quality. We’ll investigate ways of testing your code.                         

  • What are unit tests?

  • Learn about test runners, assertions, fakes, and coverage

  • Use the Jest framework

 

Unit Testing Approaches and Tooling
07:40

Now our Jest environment is set up, we’ll look at how to use it to test our Web service.                         

  • Write your first test

  • Refactor to aid testing

  • Test your refactored code

 

Testing a Web Service with Jest
10:45

Debugging our code is a critical step when things aren’t going well. We’ll look at the tools to make this simpler.                         

  • Configure VSCode for debugging our app and tests

  • Use the debugger and breakpoints

  • View the call stack and variables

 

Debugging Node Applications
05:51

This video is your assignment for day five.                           

  • Take a look at the Question and try solving it on your own before the next lecture

 

Assignment
01:14
+ Async/Await
4 lectures 24:57

We will advance our knowledge of asynchronous code and methodology and use more Promise features.                         

  • Promises refresher

  • Explore promises in sequence

  • Learn about racing promises

 

Advanced Asynchronous Operations
11:35

We will now look at the new async/await syntax and see how to use it to write cleaner asynchronous code.                         

  • Creating and awaiting async functions

  • Run the code for catching and handling errors

  • Run async functions in parallel and sequence

 

Async/Await in Node
06:21

Now we will look at how to test the asynchronous code we have written, whether with callbacks, promises, or async/await.                         

  • Run the code for testing callbacks

  • Perform testing promises

  • Perform testing async/await

 

Testing Async Functions
06:42

This video is your assignment for day six.                           

  • Take a look at the Question and try solving it on your own before the next lecture

 

Assignment
00:19
+ Putting It All Together
4 lectures 36:14

We will cover how to protect routes in Express using the Passport middleware so that some authentication is required.                         

  • Get started with Passport

  • Use Postman

  • Use the bearer token strategy

 

Authentication in Express Using Passport
09:50

Databases are a large part of a web application. We will cover how to use MongoDB in our Node app.                         

  • Connect to Mongo and creating collections and documents

  • Find documents

  • Delete documents

 

MongoDB with Node
16:10

In our final video, we’ll look at how to run Node apps in  production so that they recover if they crash, as well as logging and  monitoring.                         

  • Launch apps with PM2

  • Write ecosystem files

  • Monitor apps with PM2

 

Running Node in Production
05:34

This video is your assignment for day seven.                           

  • Take a look at the Question and try solving it on your own

 

Assignment
04:40
Requirements
  • No prior knowledge of Node .js is required.
Description

Node.js is a popular choice for teams that need to design, build, test, deploy, maintain, and monitor large-scale distributed systems.

This course will give you a firm basis from where to get started and work on your own projects with Node.js. Each section is followed by a hands-on, practical assignment as homework to help you readily implement what you've learned in a functional manner. From learning the basics move on to create a Webserver. Learn the newest method for asynchronous development thus advancing your knowledge in getting familiar with Authentication.

Finally, you’ll debug and test Node.js using common tools. If you are looking to upgrade your Node.js skills in the quickest possible time, then this course is for you!

About the Author

Dave Irvine is responsible for leading a small team of Node.js and React.js developers to create a fully realized holiday and employee record-keeping system, along with a visitor management system. He is a keen JavaScript engineer with a passion for the entire tech stack, from the server power cable to the mobile in your hand.

Who this course is for:
  • Create web-based Microservices in Node
  • Deploy your Node apps to production
  • Develop and test Microservices in Node
  • Debug your Node .js apps and automatically test it
  • Use NPM to manage node packages
  • Build a web application and API more easily using Express