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 - JavaScript Tutorial
From the course: Learn JavaScript: Write Modern Code with JavaScript ESNext
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
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Learning objectives1m 34s
-
(Locked)
Learn the basics of writing a Node server3m 52s
-
(Locked)
Create and set up a Node.js project3m 59s
-
(Locked)
Create and run a basic Express server5m 47s
-
(Locked)
Create and test a GET endpoint6m 27s
-
(Locked)
Read a file with the fs package4m 40s
-
(Locked)
Create and test a POST endpoint8m
-
(Locked)
-
-
-