Sample Video Frame

Created by Zed A. Shaw Updated 2026-08-31 20:32:57
 

02: The Setup

To continue with the course you'll need a basic web server. You'll eventually make your own, but for now you only need to run this one command:

npm install -g http-server

That will install a command named http-server globally on your whole computer. On OSX and Linux you'll probably have to do this:

sudo npm install -g http-server

When you do this it will prompt you for your password, and then install the command in your computer so it's always available. It's an incredibly useful tool so it's one of the few things I recommend people install globally. However, if you do not want to install it globally then you can simply create a new directory and install it there:

npm install http-server

The only thing with this is every time I tell you to run http-server you have to prefix it with npx.

Previous Lesson Next Lesson

Register for The Pro-Webdev Mega Bundle

Register today for the course and get the all currently available videos and lessons, plus all future modules for no extra charge.