Python
With python 2.7, the command:
python -m SimpleHTTPServer
Is the simplest method. The response will be:
Serving HTTP on 0.0.0.0 port 8000
You can now access any files in the directory using a browser.
NodeJS
Let's serve a web page on port 8080:
npm i -g serve
serve -l 8080