From the course: Learn JavaScript: Write Modern Code with JavaScript ESNext

Unlock this course with a free trial

Join today to access over 25,000 courses taught by industry experts.

Learning objectives

Learning objectives

- Welcome to Lesson 9: Create a Web Server with JavaScript. In this lesson, you see how JavaScript can be used in conjunction with Node.js and something called the Express Library to create servers and server endpoints very easily. By the end of the lesson, you'll have a working server written entirely in JavaScript that you can use as the basis for future JavaScript projects. Now, as for the structure of this lesson, we start off by discussing what our server will do exactly and how servers work and then we'll jump right in by learning about the basic creation and setup of a Node.js project. After that, we move on to see how to install the Express Library into our project and use it to create a server and we start learning how to add endpoints to our server by implementing a very basic hello world sort of endpoint. After that, we'll start writing some more useful endpoints, including one that we can send requests to and get an array of people data, one that reads a file and sends us…

Contents