Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/in-jun/github-profile-comments
Github profile Comment service
https://github.com/in-jun/github-profile-comments
comments comments-system git github githubprofile githubprojects githubreadme markdown markdown-language profile-readme readme-profile svg-images
Last synced: about 1 month ago
JSON representation
Github profile Comment service
- Host: GitHub
- URL: https://github.com/in-jun/github-profile-comments
- Owner: in-jun
- License: mit
- Created: 2024-04-30T13:13:17.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-22T08:17:18.000Z (8 months ago)
- Last Synced: 2024-05-22T12:02:25.509Z (8 months ago)
- Topics: comments, comments-system, git, github, githubprofile, githubprojects, githubreadme, markdown, markdown-language, profile-readme, readme-profile, svg-images
- Language: Go
- Homepage: https://comment.injunweb.com/in-jun
- Size: 83 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π¬ GitHub Profile Comments
[![Go Report Card](https://goreportcard.com/badge/github.com/in-jun/github-profile-comments)](https://goreportcard.com/report/github.com/in-jun/github-profile-comments)
> π GitHub νλ‘νμ λκΈ κΈ°λ₯μ μΆκ°νλ νμ μ μΈ λꡬ
---
## π λͺ©μ°¨
- [μκ°](#-μκ°)
- [κΈ°λ₯](#-κΈ°λ₯)
- [μμνκΈ°](#-μμνκΈ°)
- [ν λ§](#-ν λ§)
- [κΈ°μ μ€ν](#-κΈ°μ -μ€ν)
- [μν€ν μ²](#-μν€ν μ²)---
## π μκ°
GitHub Profile Commentsλ GitHub νλ‘νμ λμ μΈ μν΅ κΈ°λ₯μ μΆκ°νλ λꡬμ λλ€.
### μλ λ°©μ
```mermaid
sequenceDiagram
participant User as μ¬μ©μ
participant GitHub as GitHub OAuth
participant Service as λκΈ μλΉμ€
participant DB as λ°μ΄ν°λ² μ΄μ€User->>GitHub: OAuth λ‘κ·ΈμΈ
GitHub->>Service: μ¬μ©μ μ 보
Service->>DB: μ¬μ©μ μ μ₯
Service->>User: λ‘κ·ΈμΈ μ±κ³΅
User->>Service: λκΈ μμ±
Service->>DB: λκΈ μ μ₯
```## β¨ κΈ°λ₯
### ν΅μ¬ κΈ°λ₯
- π¬ μ€μκ° λκΈ
- π μ’μμ/μ«μ΄μ
- π¨ 컀μ€ν ν λ§
- π GitHub OAuth μΈμ¦### μ¬μ©μ κΈ°λ₯
| κΈ°λ₯ | μ€λͺ | κΆν |
| --------- | -------------------- | ----------- |
| λκΈ μμ± | νλ‘νμ λκΈ λ¨κΈ°κΈ° | λ‘κ·ΈμΈ νμ |
| μ’μμ | λκΈμ μ’μμ νμ | λ‘κ·ΈμΈ νμ |## π μμνκΈ°
### 1. νμκ°μ
```bash
# 1. μΈμ¦ νμ΄μ§ λ°©λ¬Έ
https://comment.injunweb.com/api/auth/login# 2. GitHub OAuth λ‘κ·ΈμΈ μ§ν
# 3. μ±κ³΅ μλ΅ νμΈ
{"github_id":123456789,"message":"Logged in successfully"}
```### 2. νλ‘ν μ€μ
```markdown
# README.mdμ μΆκ°[![Comments](https://comment.injunweb.com/api/user/{κΉνλΈμμ΄λ}/svg?theme={ν λ§})](https://comment.injunweb.com/{κΉνλΈμμ΄λ})
```### μ€μΉ νμΈ
- νλ‘ν νμ΄μ§ μλ‘κ³ μΉ¨
- λκΈ μμ ― νμ νμΈ
- ν λ§ μ μ© νμΈ## π¨ ν λ§
### μ¬μ© κ°λ₯ν ν λ§
| ν λ§ | μ€λͺ | μμ |
| ----------- | ----------- | --------------------------------------------------------------------------------------------------------------------- |
| black | λ€ν¬ λͺ¨λ | [![Example](https://comment.injunweb.com/api/user/in-jun/svg?theme=black)](https://comment.injunweb.com/in-jun) |
| white | λΌμ΄νΈ λͺ¨λ | [![Example](https://comment.injunweb.com/api/user/in-jun/svg?theme=white)](https://comment.injunweb.com/in-jun) |
| transparent | ν¬λͺ λ°°κ²½ | [![Example](https://comment.injunweb.com/api/user/in-jun/svg?theme=transparent)](https://comment.injunweb.com/in-jun) |## π οΈ κΈ°μ μ€ν
### νλ‘ νΈμλ
```yaml
UI:
- HTML5
- CSS3
- JavaScript (ES6+)κΈ°λ₯:
- λ°μν λμμΈ
- SVG λ λλ§
```### λ°±μλ
```yaml
μλ²:
- Go
- Gin Framework
- GORM ORMλ°μ΄ν°λ² μ΄μ€:
- MySQLμΈμ¦:
- GitHub OAuth
- JWT
```### λ°°ν¬
```yaml
μΈνλΌ:
- Docker
- injunweb (https://injunweb.com)
```## π μν€ν μ²
### λ°μ΄ν°λ² μ΄μ€ ꡬ쑰
```mermaid
erDiagram
GITHUBUSER {
uint ID PK
float64 GitHubID
string GitHubLogin
}
COMMENT {
uint ID PK
uint ReceiverID FK
uint AuthorID FK
string Content
bool IsOwnerLiked
}
LIKED {
uint ID PK
uint CommentID FK
uint UserID FK
}
DISLIKED {
uint ID PK
uint CommentID FK
uint UserID FK
}
GITHUBUSER ||--o{ COMMENT : "writes/receives"
GITHUBUSER ||--o{ LIKED : "likes"
GITHUBUSER ||--o{ DISLIKED : "dislikes"
COMMENT ||--o{ LIKED : "has"
COMMENT ||--o{ DISLIKED : "has"
```---
**[맨 μλ‘ μ¬λΌκ°κΈ°](#-github-profile-comments)**
Made with β€οΈ by [in-jun](https://github.com/in-jun)