From the course: Building a Website with Node.js and Express.js

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create an Express server in three minutes

Create an Express server in three minutes

From the course: Building a Website with Node.js and Express.js

Start my 1-month free trial

Create an Express server in three minutes

- [Instructor] Ready to jump right in, then get ready for some hands on coding. To kick this off, we will create the minimal Express application from scratch. We will keep extending that application throughout the course. Different than other platforms, Node.js has an HTTP module built into its core, Express utilizes the HTTP server in this core module, and at least during development, you don't need to set up a separate dedicated rep server to Express applications. Let's see how this works. I already have Visual Studio Code open, and the only Node.js specific thing is the package.json file and the package-lock.json file, those are needed to maintain dependencies of our current project. Now I will open the terminal that comes with Visual Studio Code by clicking View, and there, Terminal, and let's first install Express. So in the terminal, I type npm install express, this will pull down Express and all dependencies,…

Contents