- replace
vengeance.local
with your ip or<your-hostname>.local
- install and run mkcert (for Windows I used chocolatey)
make sure you add
<your-hostname>.local
to the cert
e.g. mkcert -key-file key.pem -cert-file cert.pem localhost 127.0.0.1 <your-hostname>.local
- replace the
key
andcert
in index.js with your file names (make sure they are in the root project folder) - run
npm install
- access
https://<your-hostname>.local:3333
on a web browser on your mobile phone - click the Get Accelerometer Permissions button
- watch the device orientation data come in on your node.js server!