Skip to content

kenalib/face-recognition-angular

Repository files navigation

Face Recognition Demo (frontend)

This is frontend. The backend is here -> https://github.com/kenalib/face-recognition-spring

Development server

npm start
open http://localhost:4200/

Tests and Build

npm lint
npm test
npm e2e
npm build-prod

Deploy

docker-machine scp -r dist/face-recognition-ui/ face-server:/usr/share/nginx/html/
  • sample command using docker-machine (TODO: use Travis CI)

Nginx Server Setup for Angular

Nginx setup to avoid reload 404 error.

# /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;
    }
}

Misc note

  • 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

Reference

About

face recognition demo frontend ui using angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published