Hacker News new | past | comments | ask | show | jobs | submit login

Unless you're on a mac, or various Linux distros where python 2 is shipped by default still.



Mac comes with PHP, so you can do

    php -S localhost:3000 -t ./


And now you have: php -S localhost:3000 -t ./ on mac python -m http.server on some versions of linux, python -m SimpleHttpServer 8000 on others, and any of the above on windows.

How is that easier than putting file://path/to/foo.html into my browser window, as someone getting started in web development?




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: