gfolego / faas

Folha as a Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Folha as a Service

License:Apache License 2.0


Languages

Language:Python 64.8%Language:HTML 25.2%Language:CSS 10.0%