CHAPTER 4

image

Building a Web Server

Web servers are the quintessential applications to be built with Node.js. This is due to Node.js’s main goal. Node.js is perfect for building highly scalable, event-driven, networked applications—a web server.

In this chapter you will learn and understand how to build a web server with Node.js. You will see topics covered from simple web servers to handling static files on your server. These topics are only parts of making a web server work properly. To get a full understanding of the web server as it can be implemented via Node.js, you will also learn the following:

  • Creating a Secure Sockets Layer (SSL) server ...

Get Node.js Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.