gfolego / faas

Folha as a Service
Apache License 2.0
1 stars 1 forks source link

About

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

FaaS Deployment

This guide assumes Docker is properly installed and configured.

Build docker image

docker build --tag faas --file docker/Dockerfile --pull .

Run docker container

docker run --publish 5000:5000 --name faas faas

Using 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'

Updating FaaS

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