Face detection web service.
Project created as part of the course Agile Methodologies in ONPU with the support of Sigma Software Ukraine mentors.
Build Docker image
Build requires pre-installed Docker with created user group docker for running without sudo permissions.
docker build . -t mikefaraponov/facelook:latest docker run -d --restart=always -p 80:80 --net=host -t mikefaraponov/facelook
Last string cause builded docker container to run in background mode and forwards it port 80 to host port 80.
Pull Docker image from Docker registry
If you want up our application you simply can pull Docker image from registry and then run it like in the previous paragraph.
docker pull mikefaraponov/facelook:latest docker run -d --restart=always -p 80:80 --net=host -t mikefaraponov/facelook
This walkthrough requires pre-installed vagrant, virtual-box.
To start Vagrant image simply do next steps:
cd ~/facelook vagrant up && vagrant ssh
First you need to build Js project with build npm script:
cd ~/facelook/client npm run build
Or watch each changes of files to compile:
cd ~/facelook/client npm run dev Or to build es6/scss once for prod environment:
To run flask application for dev purposes:
cd ~/facelook FLASK_APP=app/facelook.py FLASK_DEBUG=1 flask run --host=0.0.0.0
For flask application:
cd ~/facelook nosetests
To run benchmarks:
cd ~/facelook ./benchmarks.sh
For es6/scss client app:
cd ~/facelook/client npm test
Facelook allows you to upload images or an image and then system mark all faces it find on it with blue squere or if nothing found mark image with red circle at the top left corner.
- [x] Vagrant support
- [x] Docker build script
- [x] Docker automated build webhook
- [ ] Travis CI
- [ ] More unit-tests
- [ ] Nginx https connections
- [ ] Monetization
- [ ] Google Analytics