- run npm install in the root directory
- The final code uses self signed certificates. You'll need to make them (I do this in the video, or see below)
- run node on server.js
- go to http://localhost:5000
await Promise.all([
faceapi.nets.ssdMobilenetv1.loadFromUri('./models'),
faceapi.nets.faceLandmark68Net.loadFromUri('./models'),
faceapi.nets.faceRecognitionNet.loadFromUri('./models'),
faceapi.nets.ageGenderNet.loadFromUri('./models'),
faceapi.nets.faceExpressionNet.loadFromUri('./models'),
])
npm install mkcert
mkcert create-ca
mkcert create-cert
Move the 4 certificates created into the certs folder