Node.js Essential Training: Web Servers, Tests, and Deployment

Node.js Essential Training: Web Servers, Tests, and Deployment
Node.js Essential Training: Web Servers, Tests, and Deployment
English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 2h 39m | 429 MB

Deepen your essential knowledge of Node.js. Node.js is a powerful tool for controlling servers and building web applications. This training course provides a strong foundation in those intermediate-level topics: working with web servers and testing and deploying applications. Instructor Alex Banks introduces the HTTP module for making HTTP requests and shows how to install and manage Node.js modules with the node package manager (npm). He also dives into WebSockets for real-time two-way communication between web servers and clients—and demos a chat application that puts it to good use. In the final chapter, he shows how to test and debug Node.js code and use available tooling to streamline common tasks, such as compiling and minification.

Topics include:

  • Making HTTP requests
  • Building web and file servers
  • Installing packages with npm
  • Managing and linking global packages
  • Working with Express, the web server framework
  • Handling POST and DELETE requests
  • Creating WebSockets
  • Testing and debugging Node.js code
Table of Contents

1 Go beyond the basics in Node
2 What you should know
3 Work with VSCode

The HTTP Module
4 Make a request with the request method
5 Make a request with the GET method
6 Build a web server
7 Create a file server
8 Collect POST data

9 The package.json file
10 Using minimist
11 Using single-line-log
12 Using tiny-timer
13 Manage packages
14 Work with global packages
15 Link global packages

Web Servers
16 File servers with serve
17 Intro to Express
18 Handling POST requests
19 Handling DELETE requests
20 Using Express Middleware

21 Create a WebSocket
22 Broadcast messages with WebSocket
23 Create a WebSocket with Socket.IO
24 Emit Socket.IO events

Node.js Testing
25 Prepare for testing
26 Use testing frameworks
27 Write a test
28 Write a test with a mock
29 Test API routes
30 Use code coverage

Automation and Deployment
31 Using npm Scripts
32 Using import statements
33 Using Babel with Jest
34 Using webpack
35 Work with environment variables
36 Debug with VSCode

37 Next steps