So, the other day I was messing around with my computer, and I thought, “Hey, wouldn’t it be cool to set up a simple web server?” I’d heard about this thing called “w w e” – turns out it’s just “http-server”, but my fingers are clumsy. And “rock”? Well, that’s just because I felt like a rockstar doing it.

First, I googled around a bit. Needed to get this “http-server” thing installed. I found out it was an npm package. “npm,” I remembered, was something I used before to download other random computer stuff.
Getting Started
I already had * and npm installed. I just typed into my computer’s command thingy:
npm install -g http-server
The “-g” part? Figured that meant “global” – like, install it everywhere on my computer, not just in one folder. Seemed like a good idea at the time.
After hitting enter, a whole bunch of text scrolled by. I pretended I understood it all. Eventually, it stopped, and I figured, “Okay, it’s probably installed now.”
Making a Website (Sort Of)
Next, I needed something to, you know, serve. I made a new folder. Inside, I created a super simple file called “*”. The file just included a little text and that’s all. This was going to be my “website.” Very fancy.
Firing It Up
I opened the command line thingy again, and by use cd
, I navigated to that folder I just made.
Then, the magic moment. I typed:
-
http-server
More text! This time, it told me my server was running on some address, like 127.0.0.1:8080
. No idea what that meant, but I typed it into my web browser anyway.

Rock and Roll!
And there it was! My super simple, not-at-all-impressive “website” was showing up in my browser. I felt like a total coding wizard. Okay, maybe not a wizard, but at least a slightly more knowledgeable apprentice.
Then try to type w w e
in my command line, suprisingly, it works!
It was a fun little experiment. I learned that setting up a basic web server isn’t rocket science. It’s more like… carefully stacking rocks. And sometimes, you just feel like a rockstar for making something, anything, work.