- Node JS V16
- NPM
- Generate cert for use HTTPS on localhost
git clone https://github.com/xdrkush/threejs-webxr-tutorial.git
cd threejs-webxr-tutorial
npm i
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
node server.js
or with nodemon:
sudo npm i -g nodemon
nodemon server.js
go to => https://localhost:3000 (access is limited on computer)
on mobile stop data mobile and connect on same wifi. get your ip machine => 192.168.x.x
ifconfig
sudo ufw allow 3000
get the ip on: wlo1: flags=... inet 192.168.x.x
go to chrome or brave on your mobile => https://192.168.x.x:3000
- Generate cert for use HTTPS on localhost => stackoverflow
- Config get here => repo
Created by syeonjae
with config as marnore
edited and merged by xdrkush