feedback allows users to submit comments on web applications via GitHub issues. Users may authenticate via GitHub to submit issues using their own accounts, or may submit issues anonymously through a GitHub bot. feedback consists of two components: a server-side application that submits issues to GitHub, and a client-side widget that allows users to authenticate and submit issues from your application.
- Create a GitHub developer application at https://github.com/settings/developers
- Create a personal access token using the GitHub account that will be used to post anonymous issues at https://github.com/settings/tokens; the access token should have the
repo
scope
Redis is recommended for production use. Install on Mac OS using brew install redis
or on Heroku using heroku addons:create heroku-redis:hobby-dev
.
GITHUB_USER
: GitHub user who owns the target repoGITHUB_REPO
: GitHub repo to submit issues toGITHUB_TOKEN
: Personal access token used for anonymous submissionsGITHUB_CLIENT_ID
: Client ID from GitHub developer applicationGITHUB_CLIENT_SECRET
: Client secret from GitHub developer applicationBASE_URL
: Base URL of feedback applicationORIGIN_URL
: Base URL of submitting applicationREDIS_URL
: URL of Redis server; set automatically on Heroku
- Create an HTML form representing the feedback widget; see example.html for expected markup
- Create a toggle button that will be used to open and close the feedback widget
- Include widget.js in your page
- Initialize the feedback widget, passing it DOM nodes for the feedback widget, the toggle element, and the URL of the application