Install an HTTP server in localhost quickly and easily

on

If you are working more in the frontend and client-side Web applications, the problem with the local server is not foreign to you. Indeed, it is common to have to set up a server in localhost just so that the application works correctly (content security policy, I'm watching you). No need to tell you that it is not highly recommended to bypass these limitations that you impose on the browser unless you know what you are doing.

Another reason not to want to install the entire Apache PHP MySQL Toolkit is that we do not need it, when talking about a frontend application, no need for PHP or database.

Launch a simple HTTP server in localhost on Linux

Today I looked into the matter and tried to find an easy solution to set up and that is not going to take you much of your precious time. After seeing that under Linux, just navigate with the Terminal and type a command in one line:

Python-m SimpleHTTPServer

I embarked on the quest for an alternative for our friend Windows. And good news, I found what I was looking for.

Mongoose for a Web Server easy to set up on Windows

Cesanta Mongoose (NB: nothing to do with Automattic Mongoose) is an application that allows you to quickly and easily launch an HTTP server in localhost for your tests, once the application is downloaded, you only have to copy it to the folder of your Web application, a page will automatically open with the local address of your computer and your Web application is LIVE.

Download Mongoose server for Windows, Linux and MacOSX.

Official site, 168Kb!!

Please download the binary Mongoose binary version.
Icing on the cake, Mongoose also exists with a version of PHP runtime engine if your tests require the latter. I doubt, however, that the latter is very complete;).
Besides these small advantages, the application offers a mini Panel of configuration, useful if you want to add custom headers for example:

Mongoose parameter Panel
Mongoose parameter Panel

This is for this application, hoping that it will be useful to you, Merry coding!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. More information

The cookie settings on this site are set to "accept cookies" to provide you with the best browsing experience possible. If you continue to use this site without changing your cookie settings or if you click "accept" below, you consent to this.

Close