The interaction with web content is a powerful feature of Node.js. In this tutorial, you will gain an understanding of the differences between the HTTP module and the HTTPS module, as well as the methods of dealing with requests to upload and download information or files from HTTP servers.
- View Offline
- Exercise Files
- In this next chapter,…we're going to dive deep…into Node.js's HTTP module.…The HTTP module will be used…for creating web servers,…for making requests,…for handling responses.…There are two modules for this.…There's the HTTP module and the HTTPS module.…Now, both of these modules are very, very similar,…but we'll only use the HTTPS module…when we're working with a secure server.…So that means if we want…to create an HTTPS server,…we would use the HTTPS module,…and then we would have to supply…the security certificate.…
With the HTTP module,…there's no need to supply…a security certificate.…In this next lesson,…we are going to make a request…with the HTTPS module,…and the reason we're using the HTTPS module…is we are going to make a request of Wikipedia.…So you can see that this…is George Washington's Wikipedia page,…and it is being served via HTTPS.…The domain is en.wikipedia.org,…and our route is /wiki/George_Washington.…Now you can find the wiki…for most any famous person…and all of our presidents…simply by typing the name of the person...…
Alex Banks shows how to install Node.js on a Mac or PC and work with the Node.js core: the global object, event loop, http module, and file system. Then he covers reading and writing data, streaming data, making http requests, and working with the node package manager (npm). In the final chapters, he shows how to start sessions on web servers, communicate with web servers and clients with WebSockets, use the Express framework to develop applications, and test and debug Node.js code. Want to speed up your Node.js workflow? Check out the tutorials on automating tasks with Grunt and npm scripts.
- What is Node.js?
- Installing Node.js
- Understanding the global object and global timing
- Importing the core modules
- Handling events
- Creating child processes
- Reading, writing, and removing files
- Working with file streams
- Making http requests
- Serving files and JSON data
- Installing npm, the node package manager
- Working with Express, the web server framework
- Using WebSockets
- Testing and debugging Node.js code
- Working with Grunt and Browserify
- Automating tasks with npm scripts
Skill Level Intermediate
1. What Is Node.js?
2. Installing Node.js
3. Node Core
4. Node Modules
5. The File System
6. The HTTP Module
7. Node Package Manager
Installing npms locally4m 4s
8. Web Servers
Creating a WebSocket server8m 30s
10. Testing and Debugging
11. Automation and Deployment
Next steps2m 4s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.