Freitag, 6. September 2019

Serving static pages with Node.js


There is a simple HTTP server for Node.js that does not require any programming or even configuration. Simply install it, move to the directory containing the static pages and run it.

npm install http-server -g
cd .\dist\
http-server