GitHub OAuth App
# GitHub OAuth App
Vssue 同样可以配合自己搭建的 GitHub Enterprise Server 使用。只需要将
baseURL设置为你的 GitHub URL 即可。GitHub 需要设置
clientSecret,因为 GitHub 目前还不支持 implicit grant type (opens new window)
# 创建一个新的 OAuth App
- 前往 Settings - Developer Settings - OAuth Apps (opens new window)
- 点击 New OAuth App (opens new window)

- 将
Homepage URL和Authorization callback URL设置为你的网站 URL (这里我们用localhost:8080作为示例)

# 获取 Client ID 和 Secret
现在你已经创建了一个新的 OAuth App,并得到了相应的 Client ID 和 Client Secret。

# 配置并启动你的 Vssue
复制 Client ID 和 Client Secret, 并设置 owner 和 repo。
GitHub repository 的 URL 模式为
https://github.com/${owner}/${repo}
这里我们以 https://github.com/meteorlxy/vssue-demo 为例,并把 issue 的 title 设置为 Vssue Demo。
然后运行 anywhere -h localhost 8080,在 localhost:8080 监听一个 http server 并返回 index.html。

# 在本地尝试 Vssue
Vssue 已经成功运行。点击 Login 使用 GitHub 帐号登录。

重定向到 GitHub 授权页面。点击 Authorize ${你的帐号} 来登录。

在当前页面写下评论吧 ~


提示
你可以前往 meteorlxy/vssue-demo (opens new window) 来获取 demo 代码。前往该仓库的 #1 issue (opens new window) 看看发生了什么。