Git Product home page Git Product logo

gitreports.com's Introduction

Build Status Test Coverage Code Climate security

gitreports.com

Git Reports is a free service that lets you set up a stable URL for anonymous users to submit bugs and other Issues to your GitHub repositories. It works with public and private repositories and personal and organization repositories. It also provides some custom settings like Issue labels and messages to display to users submitting bugs.

Development

Git Reports is built on Ruby on Rails and uses yarn for frontend assets.

Setup

  1. Clone the repository (git clone [email protected]:schneidmaster/gitreports.com.git)
  2. Install gems: bundle install
  3. Install packages: yarn install
  4. Start the Rails and webpack servers: foreman start -f Procfile.dev

Self-hosting

You're welcome to clone and self-host the application if you're so inclined. Follow these steps:

  1. Git Reports uses Sidekiq for background jobs. To enable processing of jobs on your local machine, you just need to have Redis installed and running. (If you installed Redis with Homebrew, execute brew info redis to retrieve the necessary command and then execute that command.) Then just run bundle exec sidekiq (use the -d flag to daemonize it).
  2. Clone the application, bundle, and rake db:migrate.
  3. Register your instance of the application with GitHub here; this will give you an application client ID and client secret.
  4. Git Reports uses dotenv for configuration. Create a file in the application root directory named ".env" and add the following lines to it (filling in the values you got from the last step):

GITHUB_CLIENT_ID=youridhere
GITHUB_CLIENT_SECRET=yoursecrethere
GITHUB_CALLBACK_URL=http://yourdomain.com/github_callback

If you're developing locally with WEBrick or similar, your domain in the callback URL should include the port, i.e.

GITHUB_CALLBACK_URL=http://localhost:3000/github_callback

Since GitHub only accepts one callback URL for registered applications, I found it useful to register a development instance and a production instance, and use separate .env files in development and production with the appropriate client id, client secret, and callback URL in each.

If you want to track the application with Google Analytics, create the property and add the tracking code to the .env file as follows:

GOOGLE_ANALYTICS_CODE=UA-########-#

Translations

The public-facing portions of the Git Reports UI support i18n translations. Presently, English, French and Polish are supported; the active locale is selected using the Accept-Location HTTP header. If you would like to contribute a translation, make a copy of config/locales/en.yml using the desired locale code (check the full list here), translate the text, and submit a pull request.

Staging/Production Configuration

On Heroku, Git Reports requires both the node buildpack (for webpack/asset compilation) and the ruby buildpack. Add them with:

heroku buildpacks:clear
heroku buildpacks:set heroku/nodejs
heroku buildpacks:add heroku/ruby --index 2

Contributing

  1. Fork it (https://github.com/schneidmaster/gitreports.com/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

gitreports.com's People

Contributors

ad-m avatar bebora avatar dependabot[bot] avatar gallandarakhneorg avatar gamemap avatar pniedzwiedzinski avatar schneidmaster avatar scottx611x avatar sophist-uk avatar tuarrep avatar

Stargazers

 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.