In many Brazilian companies, we have to fill out the "folha ponto", which is basically a time sheet stating when we arrived at work, and when we left. This is usually a cumbersome and merely bureaucratic task.
Facilitating this process, we released Folha as a Service (FaaS).
Contributions welcome: check open issues
Contributors: check list
This guide assumes Docker is properly installed and configured.
docker build --tag faas --file docker/Dockerfile --pull .
docker run --publish 5000:5000 --name faas faas
Now, it is possible to access the web interface through http://localhost:5000.
It is also possible to access the REST API interface through command line:
curl --output 'example/output.pdf' --form 'file=@example/input.pdf' 'http://localhost:5000'
In case the repository is updated, just copy the new code to the docker container, and Gunicorn will reload the service automatically:
docker cp faas/. faas:/faas