Start a Temporary Web Server from the Command Line

preview_player
Показать описание
There will be times when you need to quickly run a web server so you can test your website from your local computer. Node, through NPM, offers some quick and easy options to do this.
This tutorial covers how to use the http-server module to achieve this goal with npm or npx.

Command to run server with CORS support:

npx http-server --cors
Рекомендации по теме
Комментарии
Автор

I had no idea you could load it into memory like that and run it! Very cool, Steve.

Colstonewall