Hosting without Live Server

I’m trying to host a webpage locally. Though I’m using VS Code is there a way to host locally without using Live Server.
Simply put, how can I get 127.0.0.1:5500/index.html
point to my index.html file ? I’m using a Linux(Debian) based system.

appreciate if anyone can either explain or point me to a resource for this purpose.
thank you

You could build a custom webserver (ExpressJS is a good tool for quick server spinup).

But I would ask, what’s your end goal here? Why can’t you use live server?

to be honest I’m fascinated by how Live Server works. I can use it but I’m extremely interested in what goes on under the hood. That’s why I want to implement its inner working myself.
I’m not familiar with ExpressJS though. Is there any other way to do this ?

You could browse their source code!

It looks like they’re using connect. Realistically, you could use any language that supports HTTP requests to create your own server, but I believe VSCode plugins are restricted to JavaScript (not sure, don’t quote me on that hehe).

I was there, digging into the repo. Didn’t understand much, still learning.
thank you for linking it here though & I’ll try creating an HTTP server.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.