Giter Club home page Giter Club logo

thumbsup's Introduction

thumbsup

Summarize GitHub issues

Running the server

Directly

Install requirements:

pip install -r requirements.txt

To run the development server:

FLASK_ENV=development FLASK_APP=thumbsup.server flask run

To run production server:

gunicorn --bind 0.0.0.0:5000 thumbsup.server:app

Docker

To build the image:

docker build -t simiotics/thumbsup .

To run a container:

docker run -p 5000:5000 simiotics/thumbsup

Accessing in browser

Once you have a server set up, Thumbsup should be available at localhost:5000

GitHub rate limit

Thumbsup uses the GitHub API to retrieve issue comments. If you do not provide a GitHub access token, Thumbsup is subject to the unauthenticated GitHub API rate limit of 60 calls per hour.

You can provide a GitHub access token by setting it as the value for the THUMBSUP_GITHUB_TOKEN environment variable. This will bring your available rate limit to 5000 requests per hour (higher if you have a better GitHub plan).

You can also set a minimum rate limit threshold below which Thumbsup will fail all requests. To do this, set the THUMBSUP_RATE_LIMIT_BOUND to an integer value.

To pass these environment variables to Thumbsup through docker, assuming they are set in your shell:

docker run -p 5000:5000 \
    -e THUMBSUP_GITHUB_TOKEN="$THUMBSUP_GITHUB_TOKEN" \
    -e THUMBSUP_RATE_LIMIT_BOUND="$THUMBSUP_RATE_LIMIT_BOUND" \
    simiotics/thumbsup

See sample.env for an example of how to set these environment variables. To use it locally:

  1. Run $ cp sample.env my.env

  2. Update the values in my.env.

  3. Source the file: $ . my.env.

thumbsup's People

Contributors

zomglings avatar

Watchers

James Cloos avatar

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.