tag:blogger.com,1999:blog-37642571.post2814446109739872435..comments2024-03-20T02:30:44.457-07:00Comments on Thinking In Software: Serving local files with a simple http file server built on NodeJS Nestor Urquizahttp://www.blogger.com/profile/12351754666722274569noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-37642571.post-57411593279062253652015-12-31T05:49:27.671-08:002015-12-31T05:49:27.671-08:00Thanks for sharing Corey. In node you do have a on...Thanks for sharing Corey. In node you do have a one liner to produce the exact same result "http-server". However it will not handle specific directories neither serving specific mime types. For that you will need extra coding in python or node.<br /><br />In addition the server I published contains icons and search as well. I am sure you will need 26 lines or more to get a similar product in python, correct? Cheers, - NestorNestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-49731609529536929432015-12-30T07:54:25.067-08:002015-12-30T07:54:25.067-08:00it's a one-liner in Python:
$ python -m Simp...it's a one-liner in Python:<br /> $ python -m SimpleHTTPServerCorey Goldberghttps://www.blogger.com/profile/06219872951977664560noreply@blogger.com