Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

or in python 2 (should be on installed by default on most distro):

   python -m SimpleHTTPServer
or python3 :

    python -m http.server


Seriously, the poster is going to have to host their files somewhere eventually if they intend anyone else to ever see it. I can't believe they rewrote all their JS because they were forced to access over http:// instead of file://. This seems nonsensical.


Hey, never used python's http server, that's just as nice and easy as the two solutions I proposed, thanks for the tip!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: