Skip to content

jmcarp/feedback

Repository files navigation

feedback

Build Status

Deploy

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.

Set up GitHub

Set up Redis

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.

Set up environment variables

  • GITHUB_USER: GitHub user who owns the target repo
  • GITHUB_REPO: GitHub repo to submit issues to
  • GITHUB_TOKEN: Personal access token used for anonymous submissions
  • GITHUB_CLIENT_ID: Client ID from GitHub developer application
  • GITHUB_CLIENT_SECRET: Client secret from GitHub developer application
  • BASE_URL: Base URL of feedback application
  • ORIGIN_URL: Base URL of submitting application
  • REDIS_URL: URL of Redis server; set automatically on Heroku

Set up feedback widget

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published