Node.js: Web Servers, Tests, and Deployment
1h 19mAdvanced2022-08-19
Authors

Eve Porcello
Software Developer and Instructor
Course details
If you’re looking to deepen your essential knowledge of Node.js, you’re in luck. This powerful tool for controlling servers and building web applications allows you to work from just about anywhere. In this course, instructor Eve Porcello walks you through how to connect with web servers and test and deploy Node.js applications.
Get a thorough introduction to the HTTP module to make a request and build a web server. Learn how to install and manage Node.js tools with the node package manager (npm). Along the way, Eve teaches you how to use WebSockets for real-time two-way communication between web servers and clients, demonstrating how to create a chat application that’s testable and easy to use. By the end of this course, you’ll be ready to start testing and debugging Node.js code on your own, using the available tooling to streamline common tasks such as compiling and minification.
Get a thorough introduction to the HTTP module to make a request and build a web server. Learn how to install and manage Node.js tools with the node package manager (npm). Along the way, Eve teaches you how to use WebSockets for real-time two-way communication between web servers and clients, demonstrating how to create a chat application that’s testable and easy to use. By the end of this course, you’ll be ready to start testing and debugging Node.js code on your own, using the available tooling to streamline common tasks such as compiling and minification.
Skills covered
Software DeploymentNode.jsJavaScript FrameworksSoftware TestingDevOps FoundationsDevOpsEssential TrainingWeb DevelopmentNetwork and System AdministrationOpen SourceSoftware Development
Concepts
Introduction
- Going beyond the basics in Node
- What you should know
- Working with VS Code
The HTTP Module
- Making a request with the request method
- Making a request with the GET method
- Building a web server
- Creating a file server
- Serving JSON data
npm
- The package.json file
- Using import statements
- Using minimist
- Using tiny-timer
- Managing packages
Web Servers
- File servers with serve
- Intro to Express
- Handling POST requests
- Handling DELETE requests
- Using Express middleware
WebSockets
- Creating a WebSocket
- Broadcasting messages with a WebSocket
- Creating a WebSocket client with Socket.IO
- Emitting Socket.IO events
Node.js Testing
- Creating modular projects
- Configuring Babel with Jest
- Writing a test
- Using code coverage
Conclusion
- Next steps