Chapter 4. HTTP Servers and Clients – A Web Application's First Steps
Now that you've learned about Node.js modules, it's time to put this knowledge to work in building a simple Node.js web application. In this chapter, we'll keep to a simple application, enabling us to explore three different application frameworks for Node.js. In later chapters, we'll build some more complex applications, but before we can walk, we must learn to crawl.
We will cover the following topics in this chapter:
- EventEmitters
- Listening to HTTP events and the HTTP Server object
- HTTP request routing
- ES-2015 template strings
- Building a simple web application with no frameworks
- The Express application framework
- Express middleware functions
- How to deal with computationally intensive code
- The HTTP Client object
- Creating a simple REST service with Express