Coder Social home page Coder Social logo

benbalter / comment-card-jp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 387 KB

A Japanese fork of https://github.com/benbalter/comment-card

Home Page: https://comment-card-jp.herokuapp.com/benbalter/comment-card-jp/issues/new

License: MIT License

Ruby 45.58% CSS 9.76% HTML 44.65%

comment-card-jp's Introduction

Comment Card JP

Comment card provides a simplified interface for non-technical users โ€” both authenticated and pseudonymous โ€” to provide feedback for your GitHub-hosted project (in the form of GitHub issues)

Live Demo

comment card

How it works

Under the hood, Comment Card is just an abstraction layer over a gem called Problem Child, which does all the heavy lifting. Problem child allows you to stand up a simple web form to create GitHub issues. If you're only looking to submit issues to a single repository, Problem Child may be the better route.

Setup

Comment card is designed to run on Heroku, but can run in any Ruby environment.

  1. Register a new OAuth application
  2. Set GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET as environmental variables

That's it. Simply swap out github.com with your Comment Card instance for any link to the new issue URL.

For example, if your project's new comment url is https://github.com/benbalter/comment-card/issues/new and your Comment Card instance is as comment-card.herokuapp.com, you'd link users to https://comment-card.herokuapp.com/benbalter/comment-card/issues/new to submit comments.

Allowing pseudonymous submissions

You can also configure Comment Card to allow pseudonymous submissions that don't require submitters to have a GitHub login:

  1. Create a "bot" account (a dummy GitHub user that can be used to create the issues)
  2. Login as that user and create a personal access token with public_repo scope
  3. Set the token as the GITHUB_TOKEN environmental variable

guest login

Users then will have the choice to enter their name or authenticate with GitHub before submitting.

Setting up Recaptcha

If you allow pseudonymous submissions, best practices suggest that you should require users to verify that they are human to avoid spammy submissions. To enable recaptcha support:

  1. Get a recaptcha API Key
  2. Set RECAPTCHA_PUBLIC and RECAPTCHA_PRIVATE environmental variables

Roadmap

Take a look at the 1.0 Milestone

Running locally

  1. script/bootstrap
  2. script/server

comment-card-jp's People

Contributors

benbalter avatar dice avatar

Stargazers

 avatar

Watchers

 avatar  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.