Lesson 4. Building a simple web server in Node.js
This lesson covers some basic functions of the http module, a Node.js library of code used for handling requests over the internet. The tech community raves about Node.js and its use of JavaScript as a server-side language. In this lesson, you build your first web server. In a few short steps, you convert a couple of lines of JavaScript to an application with which you can communicate on your web browser.
This lesson covers
- Generating a basic web server using Node.js and npm
- Writing code that processes requests from a browser and sends back a response
- Running a web server in your browser
You’re on your way to building your first web application. Before you deliver ...
Get Get Programming with Node.js 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.