1 Star 0 Fork 4

百小僧 / gitee-stargazers

forked from yadong.zhang / gitee-stargazers 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

gitee-stargazers

将 Gitee 项目的 Star 数显示到统计图上。

开发背景

目前开发者最常用的查看 star 趋势的工具一般都是 starchart.cc,比如:

Stargazers over time

但是这个工具不支持 Gitee 中的仓库,那怎么行!必须安排上!

使用方式

Npm

npm run start

Docker

# 拉取镜像
docker pull justauth/gitee-stargazers

# 运行容器
docker run -d -p 3000:3000 --name gitee-stargazers justauth/gitee-stargazers

Dockerfile

# 通过 Dockerfile 构建镜像
docker build -t <your username>/gitee-stargazers .

# 运行容器
docker run -d -p 3000:3000 --name gitee-stargazers <your username>/gitee-stargazers

访问

浏览器访问:http://localhost:3000/{owner}/{repo}/{repoCreatedTime} .

  • owner: 项目所有者,支持组织名、用户名、企业名
  • repo:仓库名
  • repoCreatedTime:仓库创建时间

例如:http://localhost:3000/fujieid/jap/2021-1-1

示例:

特别说明

由于受 Gitee 接口限制,目前此项目暂时只能获取到两个月内的 star 数据,获取更多数据的方式,正在和 Gitee 技术沟通。

参考资料

index.htmlstyle.css 文件参考并改造自 caarlos0/starcharts项目

MIT License Copyright (c) 2021 yadong.zhang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

通过chart图表显示gitee项目的 star 趋势 展开 收起
NodeJS
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/monksoul/gitee-stargazers.git
git@gitee.com:monksoul/gitee-stargazers.git
monksoul
gitee-stargazers
gitee-stargazers
master

搜索帮助