There are quite a few one line HTTP servers available e.g.
Python
python -m SimpleHTTPServer 8000
Ruby
ruby -run -ehttpd . -p8000
etc.
Are there any 1 line HTTPS servers? If they generate their own self signed certificates, even better. A small number of lines will work too.
Browsersync does this well.
Install with
npm i -g browser-sync
Serve the contents of the current directory with
browser-sync start -s --https
No setup required. See the docs for other features.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With