-
copy .env.sample to .env
-
put your github app id and app secret to .env
-
bundle
-
rails s
-
generate one authorize_url and ask the user to click on it
-
github will send a redirect request to user browser.
-
callback url that runs in your user browser, which actually calls your rails controller
-
use that code params to exchange long living access token for consecutive api call