macで p5.js で作ったものをモバイルでチェックするのに、mac上のローカルサーバーで確認するのが手っ取り早い。
python
python -m http.server 8888
で起動。 http://localhost:8888/ または、 http://ipアドレス:8888/ でブラウザから確認できる。
MacのApacheを起動
sudo apachectl start
次にWebブラウザで「http://localhost/」を打ち込んでアクセス。
/Library/WebServer/Documents/index.html.en が表示されてる。
サーバーをストップさせるには
sudo apachectl stop
再起動をするには
sudo apachectl restart