You can use this GitHub App template code as a foundation to create any GitHub App you'd like. You can learn how to configure a template GitHub App by following the archived "Setting up your development environment" guide.
To run the code, make sure you have Bundler installed; then enter bundle install on the command line.
- Create a copy of the
.env-examplefile called.env. - Add your GitHub App's private key, app ID, and webhook secret to the
.envfile.
- Run
ruby template_server.rbon the command line. - View the default Sinatra app at
localhost:3000.