Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/WCY-dt/my-github-2024

Statistics of your activities on GitHub in 2024. 统计2024年你在GitHub上的活动.
https://github.com/WCY-dt/my-github-2024

github github-api statistics

Last synced: 3 days ago
JSON representation

Statistics of your activities on GitHub in 2024. 统计2024年你在GitHub上的活动.

Awesome Lists containing this project

README

        


logo

Statistics of your activities on GitHub in 2024.

[简体中文](README_zh-CN.md) | English

[![Deploy state](https://github.com/WCY-dt/my-github-2024/actions/workflows/deploy.yml/badge.svg)](https://github.com/WCY-dt/my-github-2024/actions/workflows/deploy.yml) [![Server Status](https://img.shields.io/badge/dynamic/json?logo=linux&color=brightgreen&label=Server%20status&query=%24.status&cacheSeconds=600&url=https%3A%2F%2F2024.ch3nyang.top%2Fstatus)](https://2024.ch3nyang.top)

[![GitHub issues](https://img.shields.io/github/issues/WCY-dt/my-github-2024)](https://github.com/WCY-dt/my-github-2024/issues) [![GitHub pull requests](https://img.shields.io/github/issues-pr/WCY-dt/my-github-2024)](https://github.com/WCY-dt/my-github-2024/pulls) [![GitHub license](https://img.shields.io/github/license/WCY-dt/my-github-2024)](https://github.com/WCY-dt/my-github-2024/blob/main/LICENSE)

👉 Try it now: https://2024.ch3nyang.top

## Example

![example](example.png)

## Usage

1. Visit [https://2024.ch3nyang.top](https://2024.ch3nyang.top).

2. Click the `Sign in with GitHub` button and authorize login.

3. Select your time zone, then click the `Generate` button, wait a few seconds, and you can view your activities on GitHub in 2024.

## Run locally

> [!IMPORTANT]
>
> Due to the features of the `datetime` library, this project requires Python-3.12 or above.

1. Clone the repository:

```bash
git clone https://github.com/WCY-dt/my-github-2024.git
cd my-github-2024
```

2. Create a Github OAuth App:

Visit [GitHub Developer Settings](https://github.com/settings/developers) to create a new OAuth App. In it, fill in `Homepage URL` and `Authorization callback URL` with `http://127.0.0.1:5000` and `http://127.0.0.1:5000/callback` respectively.

Get `Client ID` and `Client Secret`.

3. Configure the environment variable `.env` file in the root directory of the project. The content is as follows:

```env
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
```

4. Install dependencies:

```bash
pip3 install -r requirements.txt
```

5. Run the project:

```bash
python3 my-github-2024.py
```

6. Visit `http://127.0.0.1:5000` and complete!

## Statistics

[![Star History Chart](https://api.star-history.com/svg?repos=WCY-dt/my-github-2024&type=Date)](https://star-history.com/#WCY-dt/my-github-2024&Date)