Since then, Mozilla Firefox has consistently featured in the top 3 most popular browsers globally and this is set to continue thanks to the release of Firefox 30. At its public launch in 2004 Mozilla Firefox was the first browser to challenge Microsoft Internet Explorer’s dominance. Start-Process " While($Srv.Mozilla Firefox is a fast, light and tidy open source web browser. I haven't tested them, but they are portable and worth mentioning.Īlso, if you only want the absolute basics (HTML+JS), here's a tiny PowerShell script that doesn't need anything to be installed or downloaded: $Srv = New-Object Net.HttpListener A modern alternative would be Laragon or WinNMP. Though it hasn't been updated since 2013. That's an option if you need a quick PHP and MySQL server. An icon will appear in the taskbar and it'll navigate to the server in the default browser.Īlso, Z-WAMP is a 100% portable WAMP that runs in a single folder, it's awesome. php -S localhost:8000įor those on Windows without Python or Node.js, there is still a lightweight solution: Mongoose.Īll you do is drag the executable to wherever the root of the server should be, and run it. the Ruby Gods say this works as well: ruby -run -e httpd. This spins up a Node.js httpd which serves the files in your directory as static files accessible from Ruby Start your http server by issuing http-server -c-1 Install http-server by typing npm install -g http-serverĬhange into your working directory, where your some.html lives Node.jsĪlternatively, if you demand a more responsive setup and already use nodejs. If you are using Visual Studio Code you can install the Live Server extension which provides a local web server enviroment. Python 3ĭo the same steps, but use the following command instead python3 -m rver VSCode You can use a custom port python -m SimpleHTTPServer 9000 giving you link: This approach is built in to any Python installation.This will start a web server to host your entire directory listing at Start up a Python web server using the command python -m SimpleHTTPServer Here are some options to quickly spin up a local web server to let your browser render local files Python 2Ĭhange directory into the folder where your file some.html or file(s) exist using the command cd /path/to/your/folder Just to be explicit - Yes, the error is saying you cannot point your browser directly at file://some/path/some.html
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |