L'ho cercato tre volte questa settimana, quindi ho pensato che avrei fatto meglio ad assicurarmi di averne una copia.
Python 2:
python -m SimpleHTTPServer 8000
Vai alla directory del progetto nel terminale ed esegui quel comando. Quindi http: // localhost: 8000 server su quella directory (come nel file `index.html`).
Python 3:
python3 -m http.server --cgi 8080
PHP:
php -S localhost:2222
npm:
npm i -g serve serve