Code Monkey home page Code Monkey logo

faas's People

Contributors

brunexgeek avatar fberanizo avatar gfolego avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

brunexgeek

faas's Issues

Validation tests

We should have some tests to validate API and UI functioning.

Add some statistics

It would be nice to have some statistics displayed in the web interface, such as:

  • Number of accesses/views in the past 10 days.
  • Nuber of requests (PDFs processed) in the past time, including 10 days, 30 days, and always.

This should be persisted across restarts.

Log input filename

Find an appropriate way to log the input filename. It shouldn't be too hard to extract this information from Gunicorn, to be printed together with access log.

Include a legal notice

The system does the automatic filling considering the "correct" times, but the user is the solely responsible for the veracity of the information. We need to change the web page and the readme to include a legal notice like the following:

A veracidade das informações contidas na folha de ponto é de total responsabilidade do empregado. Se os horários de entrada e saída preenchidos pelo sistema não condizem com os horários reais praticados, o empregado deverá preencher a folha de ponto manualmente.
Não nos responsabilizamos por danos decorridos pelo uso do serviço aqui oferecido.

Add start and end time options to API and UI

O código standalone permite definir o texto a ser colocado nas colunas de hora de início e hora de fim do PDF. Precisamos modificar o serviço REST para aceitar esses parâmetros.

Com isso também será possível definir esses parâmetros através da interface web.

Convert faas.sh to Python

Our current processing pipeline is less than ideal. Converting faas.sh to Python would greatly improve that, reducing the need for temporary files writing and reading.

Improve error handling

We should improve how we handle and propagate error throughout the processing pipeline. And, particularly, how this error is displayed to the user and logged in the backend.

Add slash to non working days

We should not sign non working days, such as weekends and holidays.
We could add a slash to these days, making signing easier and faster.

Improve deployment

I believe a good deployment option would be to use Docker, and Gunicorn.
Docker should be able to isolate software requirements, avoiding possible conflicts.
Flask states: "Do not use the builtin development server in production". We could consider Gunicorn and/or uWSGI with nginx.

Discussions are welcome.

Reference: http://flask.pocoo.org/docs/0.10/deploying/

API documentation

We should have an API documentation, specifying parameters and accepted values.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.