From the course: Learning Infrastructure for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Set up localhost with Node.js
From the course: Learning Infrastructure for Developers
Set up localhost with Node.js
- [Instructor] As a client, you enter a domain name and you are sent to a webpage. On the server side, there is code you have to write in order to make the computer serve requests and send information back to the client. There are a couple of different languages, libraries, platforms, and frameworks we can use, but in the next few lessons, we'll take a look at two examples, one in Node.js and one in Python. You don't need to understand JavaScript or Python fully to make this work. The goal is to understand what code might go into a server so that you can create a server using the language and framework of your choice. To start off, we'll be creating a web server using Node.js. Node.js is a platform that allows us to use JavaScript to write server-side code. Let's open up Sublime. Before we get started, we'll save this file as app.js, and we'll save it in our desktop. When you go to a website, the URL often starts with…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.