19 ms·
WorldWideWeb.app
- steviedotboston 4y agoI've been looking for this exact thing for years! I just wanted to an easy way to spin up a web server for hosting a simple HTML page on a home intranet, and didn't want to mess around with configuring Apache or something needlessly complicated.
- yreg 4y agoAs others users say, you can just do `python –m SimpleHTTPServer` in the folder you want to share. Unfortunately this is going to break in macOS 12.3, but it was available for a long time.
- spurgu 4y agoHmm why will this (basic Python functionality) break in 12.3?
- gabereiser 4y agoBecause he’s using Python 2 instead of 3. `python -m http.server 8080`
- ihuman 4y agoThat won't work either, since macOS won't come with python 3
- 0x0 4y agoAre you sure? My macOS 12.4 has a /usr/bin/python3 that is happy to accept "-m -m http.server 8080"
- ihuman 4y agoThat's from the Xcode developer tools, not macOS itself. When you try to run that command after a fresh macOS installation, it tells you to install the Xcode dev tools.
- spurgu 4y agoWow that sucks if true. Python is such a great introduction to programming and is a great tool to have installed by default on Linux and Mac.... is there any logical reason why it's being removed?
- yreg 4y agoI don't like it either, but my guess is they consider it irelevant. Their software doesn't depend on it, vast majority of their users won't use it and those who want to can easily install it themselves. I remember times when each mac came with not just Python, but also Java and Adobe Flash Player pre-installed. Of course I'm not saying they should do that again, but there was something wonderfull about powering it on and being able to e.g. play YouTube videos right away instead of having to set everything up like on a PC.
- sgjohnson 4y ago> is there any logical reason why it's being removed? Yes. The versions they shipped with macOS were typically outdated, and shipping them with macOS would basically mean that they only get updated with macOS, so a lot of people were/are running old and vulnerable versions of those tools, and they decided to scrap them altogether.
- ihuman 4y agoStarting in 12.3, macOS won't ship with any version of Python anymore. You have to install it first.
- PStamatiou 4y agoLove the simplicity of this. Maybe a future release it can do https like npm https-localhost does
- wolframhempel 4y agoVery cool project, but it's worth mentioning that you can simply run 'python –m SimpleHTTPServer' in any directory on mac to spin up a HTTP server with that directory as root
- PStamatiou 4y agoIt's simple for us but I think the ethos around this project is not even having to open a command line. Like old Mac OS X days, just click a button to start a web server
- steve_adams_86 4y agoYes, there are loads of people out there who would love to learn HTML, CSS, maybe some basic image editing, and never have to open a command line. It isn't intuitive to people who live in the command line (why wouldn't you want such an efficient tool?), but it's like convincing someone to like a healthy food they find repulsive.
- pqdbr 4y agoWith Ruby, `ruby -run -e httpd . -p 8000`
- acomjean 4y agoFor those of us odd ones… php -S localhost:8000 -t webdir/ https://www.php.net/manual/en/features.commandline.webserver.php https://www.php.net/manual/en/features.commandline.webserver...
- wolframhempel 4y agoTrue, but python comes preinstalled on macs
- john-aj 4y agoIsn't Ruby also included by default?
- TobyTheDog123 4y agoI always run into this issue in one form or another. Glad to see a free, complete, and trustworthy solution to it.
- steve_adams_86 4y agoThis is really cool! Nice work. I wonder what it would take to get live-reloading into this without anything special added by the user. I think you'd be able to add a JS snippet that listens for server pushes (you'd push when the file system changed, I guess), then reload using window.location? Not ideal though, you'd need to inject that into the page or do something weird like output everything in an iframe. People love their live reloads though, and a lot of people who benefit from it aren't really sure how to implement it. It would be cool to have an opt-in, no-code solution.
- qbasic_forever 4y agoVite will add live reloading to HTML it serves: https://vitejs.dev/ https://vitejs.dev/ It even goes further with some supported frameworks and will do hot module replacement which is like live reloading but doesn't reload the full page and just injects the changed components (faster more instant updates). It'll live reload CSS, images, etc. too. If vite seems a little too complex browsersync will do nice life reloading for all HTML it serves too: https://browsersync.io/ https://browsersync.io/
- steve_adams_86 4y agoInteresting. I wonder how difficult it would be to bundle these features to work across devices like WorldWideWeb.app. If people were okay with a fairly opinionated workflow, you could offer some cool features. You’d run into the same issues as Create React App for more able users, but you might not encounter that as much with the type of people who would want this. Edit: also have to say I love vite. Such awesome work being done by those devs
- kringo 4y agoGood work, This will be a great tool for designers and non-dev's who don't know or don't like to start from command line! Just add live push/reload, you're good to go! Like other commenters, there are a million ways to run a web server nowadays npm, python, ruby, etc
- DanAtC 4y agoVery nice. On iOS can this listen on IPv6? Some cell providers allow incoming connections on IPv6. This coupled with a dynamic DNS service could make for a cheap, always-on and portable server. Maybe put Cloudflare in front of it for IPv4 access and use their cache to smooth out TTL expiration between IP changes.
- lapcat 4y agoYou can't keep an iOS app always listening though.
- mrtesthah 4y agoIt’d be interesting to create a proxy service of some sort that woke up the app using push notifications before forwarding the actual connection.
- ec109685 4y agoWould the OS keep it loaded if it also played sound?
- neilalexander 4y agoProbably, but it wouldn't pass App Store review.
- fevangelou 4y agoIf the purpose is to test static html pages only, what's the problem with just opening them up in the browser with file:// paths? For everyone else who need PHP, python, ruby or node they can just use Homebrew to install the relevant packages. The only benefit I see is just sharing a URL with someone else on the same network.
- fiddlerwoaroof 4y agoI’ve run into a couple security limitations when I try to use file:// URLs
- draw_down 4y agoOrigins and schemes (among other things) are important to how content is served on the web.
- deleted 4y ago[deleted]
- makeitdouble 4y agoIt’s a fine app for the mac, but the big impact is really on iOS where you won’t be randomly opening your files in Safari. Also path interpretation is different when you’re in “file” mode and “http” mode
- Kerrick 4y agoIn addition to the other comments people have made, relative URLs that start with a slash don't work the way you probably intend them to if you're browsing around with file:// paths. For example, a webpage located at /Users/example/Sites/example.com/index.html when loaded with file:// URLs will not find /Users/example/Sites/example.com/style.css if you use <link rel="stylesheet" href="/style.css">. (But you probably want to use "/style.css" rather than "./style.css" because then you don't have to keep track of arbitrary depths of ../ being added for files like /Users/example/Sites/example.com/foo/bar/baz/index.html.)
- johnkelly 4y agoThis is very cool. Until web bundles are supported in all browsers, this is a great way to share/run a folder of files as a website directly from your phone. Thank you for this.
- Vladimof 4y agoNice, but there are so many development web servers already?
- nfgrep 4y agoSo cool. I’d honestly love to replace my laptop with an iPad. That apple pencil is so good.
- wildrhythms 4y agoI would love this, I have an iPad Pro, unfortunately in trying the WorldWideWeb app in combination with the Runestone text editor app, I discovered that it is impossible to change a file’s extension on iOS. This is an iOS limitation. I made a home.txt file by mistake, and when I tried renaming it it became home.html.txt. I had no idea this was a thing until now and it’s really put a damper on my expectations for an iPad in its current state to become a portable dev environment.
- hahajk 4y agoCan you use iSH to do the standard dev stuff like rename files on the host system? I think vim even works in it, so there’s a text editor too!
- smm11 4y agoHasn't that name been used before?
- p_l 4y agoFor the first Web Browser (and combined editor) by Tim Barnes-Lee, yes
- aljazmerzen 4y agoFor folks using Windows, there is very similar project miniWeb [1], which is also a single binary, serves a directory with one click and provides dur listings. Very useful for LAN parties or sharing over home network, when windows network discovery just wont work. [1] https://sourceforge.net/projects/miniweb/ https://sourceforge.net/projects/miniweb/
- jll29 4y agoWhile from a professional IT and security perspective it makes sense not to pre-install what may be an arbitrary language in a dated version providing unnecessary extra attack surface, things are different from an educational perspective: Installing a Web server AND a database AND a programming language may well be too much for the impatient & low-attention span generation before trying out a 4-line "hello, world!" Web page, so some folks may never try to get into programming (which today is typically Web dev), full stop. (Putting on old grumpy man voice) These kids today couldn't enter 15 pages of machine code in hex from game magazines as we once did. (end ranting voice)
- deleted 4y ago[deleted]
- tambourine_man 4y agoI believe bonjour .local domains and DNS work on Windows by default, right? If so, that's a great way of sharing files from iOS to Windows on a local network Edit: just downloaded and tested, it works on Debian Linux out of the box, zero conf stuff is installed by default, I guess. This is very cool. The app is stupendous in every way. Major kudos.
- kevincox 4y agoIn the past .local didn't work on windows. Apparently it conflicted with some discovery system that they had. It also don't work on Android, apparently for the smae reason as Windows). I have it set up on my Linux box and it is very convenient. But the lack of Android support is very annoying.
- phs2501 4y agoFrom the title I'd assumed this was referring to the original web browser (https://en.wikipedia.org/wiki/WorldWideWeb https://en.wikipedia.org/wiki/WorldWideWeb), which of course would have been `WorldWideWeb.app` as well.
- deleted 4y ago[deleted]
- k0nsumer 4y agoTry valet up and running with a few quick commands.
- user3939382 4y agoThis would have been great for the intro class I taught on computers which included a lesson on how websites work. I used MAMP for this purpose but this looks better. https://www.mamp.info/en/windows/ https://www.mamp.info/en/windows/
- valleyer 4y agoShame they didn't feel like back-deploying to macOS 10.15 or earlier. I can't imagine it's doing much that would require recent APIs.
- broses 4y agoAwesome, I can't wait to try it (if it works on Linux)! Previously I used `npx http-server` for this, but I'd rather use something dependency free.
- ylyn 4y agoTry miniserve.
- michaelmior 4y ago+1 for miniserve. If you already have the Rust tooling set up, it's only a cargo install away. If not, you can just download a static binary. https://github.com/svenstaro/miniserve/releases https://github.com/svenstaro/miniserve/releases
- neilobremski 4y agoReminds me of Xitami on Windows 95 ... I wonder if that project is still around
- TradingPlaces 4y agoThis is awesome. Thank you