- Live demo https://faceapp.tk/
This is frontend. The backend is here -> https://github.com/kenalib/face-recognition-spring
npm start
open http://localhost:4200/
npm lint
npm test
npm e2e
npm build-prod
docker-machine scp -r dist/face-recognition-ui/ face-server:/usr/share/nginx/html/
- sample command using docker-machine (TODO: use Travis CI)
Nginx setup to avoid reload 404 error.
- Spring Boot server running at http://127.0.0.1:8080
- https server setup using Let's Encrypts
# /etc/nginx/conf.d/default.conf
server {
server_name faceapp.tk www.faceapp.tk;
location / {
root /usr/share/nginx/html/face-recognition-ui;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /face-recognition {
proxy_pass http://127.0.0.1:8080;
}
}
- to fix
error TS2304: Cannot find name 'Buffer'.
npm i -g typescript@next
npm i --save-dev @types/node
# and add "types" : ["node"] in tsconfig.app.json
# and restart dev server