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
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 ?
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).