{"id":661,"date":"2015-10-09T11:25:54","date_gmt":"2015-10-09T09:25:54","guid":{"rendered":"https:\/\/www.yelloworb.com\/orbblog\/?p=661"},"modified":"2015-10-09T11:25:54","modified_gmt":"2015-10-09T09:25:54","slug":"simple-local-hosting","status":"publish","type":"post","link":"https:\/\/www.yelloworb.com\/orbblog\/simple-local-hosting\/","title":{"rendered":"Simple local hosting"},"content":{"rendered":"<p>Sometimes you just want to host some files locally on you machine. For instance when debugging javascript with webworkers importing javascript files, it is required that these files come from a web URL instead of a file:\/\/-URL.<\/p>\n<p>Just saw <a href=\"http:\/\/stackoverflow.com\/a\/24267323\/1029876\">this<\/a> great suggestion on Stackoverflow. Start a local webserver using Python or Javascript and you now have the files available at <a href=\"http:\/\/localhost\">http:\/\/localhost<\/a>!<br \/>\n<code class=\"\" data-line=\"\">sudo python3 -m http.server 80<\/code><br \/>\nor if you do not have Python 3 installed<br \/>\n<code class=\"\" data-line=\"\">sudo python -m SimpleHTTPServer 80<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you just want to host some files locally on you machine. For instance when debugging javascript with webworkers importing javascript files, it is required that these files come from a web URL instead of a file:\/\/-URL. Just saw this great suggestion on Stackoverflow. Start a local webserver using Python or Javascript and you now [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[32,28],"tags":[73,71,70,69,72],"class_list":["post-661","post","type-post","status-publish","format-standard","hentry","category-hacking","category-software-development","tag-debug","tag-hosting","tag-http","tag-tips","tag-web"],"_links":{"self":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts\/661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/comments?post=661"}],"version-history":[{"count":1,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts\/661\/revisions"}],"predecessor-version":[{"id":662,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts\/661\/revisions\/662"}],"wp:attachment":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/media?parent=661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/categories?post=661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/tags?post=661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}