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!

Laisser un commentaire

Contenu non disponible.
Merci d’accepter les cookies en cliquant sur « Accepter » sur la bannière.

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.

En continuant à utiliser le site, vous acceptez l’utilisation des cookies. Plus d’informations

Les paramètres des cookies sur ce site sont définis sur « accepter les cookies » pour vous offrir la meilleure expérience de navigation possible. Si vous continuez à utiliser ce site sans changer vos paramètres de cookies ou si vous cliquez sur "Accepter" ci-dessous, vous consentez à cela.

Fermer