• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

adewes/battle-stations: Create a status page that uses the Github Issues API &am ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

adewes/battle-stations

开源软件地址:

https://github.com/adewes/battle-stations

开源编程语言:

JavaScript 73.9%

开源软件介绍:

Battle Stations!

Battle-stations is a simple status page based on Github issues that you can host everywhere. Highlights:

  • Uses the Github Issues API to display incidents to the user.
  • Updates automatically when you create/update/close issues in your Github project.
  • Does not require a backend server as it communicates directly with the Github API.
  • Performs a client-side reachability check of your own APIs.

Setup

  • Fork this repository
  • Edit the title and meta information in index.html to match your website/company.
  • Point githubProject in index.js to your own Github project and (optionally) add/edit your API endpoints that you want to have checked.

If you want to host your status page via Github pages, follow their instructions here:

https://pages.github.com/

Usage

  • To create new incidents, simply create a new issue in your project and add a label with name incident to it (you might need to create this label first).
  • To mark incidents as resolved, simply close the corresponding issue.

Questions & Answers

What technologies does this use?

It uses jQuery, React.js and a few CSS/HTML libraries (Bootstrap, Font-Awesome). The code is kept as simple as possible and runs without any build steps / compilation.

How does this work?

We simply use the public Github API to retrieve issues from your Github project. We then use React.js to display these issues to the user.

Will this work without a valid API key?

Github allows us to use the public API without providing a valid access token. The rate limit imposed (currently 60 requests every 10 minutes) is high enough for our use case, especially since Github does not count repeated requests against that same endpoint if the data has been unchanged and a valid cache/ETag header was provided.

What happens when Github goes down as well?

In that case the status page will not work, sorry.

License

This project is licensed under the MIT license.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap