0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

簡単にWebサーバーをローカルで用意する

Last updated at Posted at 2020-09-28

Web Server for Chromeを使う

ローカル環境でJavaScriptの動作を確認したいとき、file:///C:/...みたいな感じだと動作が確認できない事はよくあります。
そんな時、Chromeのアドオンである「Web Server for Chrome」を使用することで、簡単にサーバーを準備する事ができます。

インストール

ここにアクセスして、Chromeのアドオンを追加します。
https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb?hl=ja&

image01.PNG

使いかた

インストールしたら、**「CHOOSE FOLDER」**をクリックしてドキュメントルートとなるフォルダを選択します。
http://127.0.0.1:8887 にアクセスして正常に画面が表示されたら成功です。
image02.PNG

「Web Server for Chrome」を使用するとApacheやIISを立ち上げる必要もなくwebサーバーを用意できます。
以上、「Web Server for Chrome」の紹介でした。

参考サイト

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?