Set up a web development environment

I wanted for a good time to be able to ditch the shitty Neocities IDE + Firefox Dev Tools. But there was no way to make the site work offline because it simply wouldn't work (i.e. absolute links point to system root). Searching on the Bing front-end (a.k.a. DuckDuckGo) also doesn't help, everyone is just spamming to install a bunch of useless stuff.[1][2] I mean come on, I just want a comfortable local environment to work on.

But eventually, I found the light: python -m http.server.

If you're on Linux then Python's probably already installed, just cd into the root of your local website and let the python -m http.server magic happen. And in a couple seconds you have a website that can be acessed in your whole LAN. It's also very fast and awesome, and it works like a website.

For uploading your changes, just use the Neocities CLI.

Benefits over the Neocities IDE


Notes

  1. Beginners Guide for Setting Up Web Development Environment
  2. A beginners guide to setting up a modern web development environment on Binbows 10 on Medium