Sunday, September 3, 2017

Command Line web servers

The ability to serve up a random directory for http content is something that I learned quite recently. The first way that I did it:

Python3 -m http.server

From the angular cli, there is also:

ng-serve

And one more:

sudo npm install http-server -g
http-server


There are others as well, some of them are listed here:
Link to stackexchange

no need to run some heavyweight tool like IIS, Visual Studio, Apache, etc.

No comments:

Post a Comment