363 B
363 B
NodeでHttpサーバーを起動する方法
http-server
を使う
# http-server をグローバルインストール(初回のみ)
npm install -g http-server
# ファイルがあるディレクトリへ移動
cd src/front
# サーバー起動(デフォルトは http://localhost:8080)
http-server
# http-server -p 3000