初期の空ファイルとディレクトリ構成を追加、README.mdの誤字を修正
This commit is contained in:
0
Dockerfile
Normal file
0
Dockerfile
Normal file
50
README.md
50
README.md
@@ -1,11 +1,59 @@
|
|||||||
# About Watanabebashi Likomment
|
# About Watanabebashi Likomment
|
||||||
Watanabebashi Likomennt(ライコメント)は、自身のWebサイトにいいねボタンとコメントを簡単に実装できるAPIサーバです。
|
Watanabebashi Likomment(ライコメント)は、自身のWebサイトにいいねボタンとコメントを簡単に実装できるAPIサーバです。
|
||||||
|
|
||||||
# 技術スタック
|
# 技術スタック
|
||||||
- Go/Gin
|
- Go/Gin
|
||||||
- MySQL/SQLite
|
- MySQL/SQLite
|
||||||
- Dockerで動作可能
|
- Dockerで動作可能
|
||||||
|
|
||||||
|
# ディレクトリ構成
|
||||||
|
現在の暫定的なディレクトリ構成は以下の通りです。
|
||||||
|
|
||||||
|
```
|
||||||
|
WB-Likomment/
|
||||||
|
├── cmd/
|
||||||
|
│ └── server/
|
||||||
|
│ └── main.go # エントリーポイント
|
||||||
|
│
|
||||||
|
├── internal/
|
||||||
|
│ ├── config/
|
||||||
|
│ │ └── config.go # YAML読み込み&構造体定義
|
||||||
|
│ ├── database/
|
||||||
|
│ │ └── database.go # DB接続管理(MySQL/SQLite切替)
|
||||||
|
│ ├── handler/
|
||||||
|
│ │ ├── comment.go # コメントAPI
|
||||||
|
│ │ └── like.go # いいねAPI
|
||||||
|
│ ├── middleware/
|
||||||
|
│ │ └── cors.go # CORS設定
|
||||||
|
│ ├── model/
|
||||||
|
│ │ ├── comment.go # コメントモデル
|
||||||
|
│ │ └── like.go # いいねモデル
|
||||||
|
│ ├── repository/
|
||||||
|
│ │ ├── comment_repo.go # コメントリポジトリ
|
||||||
|
│ │ └── like_repo.go # いいねリポジトリ
|
||||||
|
│ ├── router/
|
||||||
|
│ │ └── router.go # ルーティング設定
|
||||||
|
│ └── service/
|
||||||
|
│ ├── comment_service.go # コメントロジック
|
||||||
|
│ └── like_service.go # いいねロジック
|
||||||
|
│
|
||||||
|
├── configs/
|
||||||
|
│ ├── config.yaml # デフォルト設定
|
||||||
|
│ ├── config.development.yaml # 開発環境用
|
||||||
|
│ └── config.production.yaml # 本番環境用
|
||||||
|
│
|
||||||
|
├── migrations/
|
||||||
|
│ ├── 001_create_likes.sql
|
||||||
|
│ └── 002_create_comments.sql
|
||||||
|
│
|
||||||
|
├── Dockerfile
|
||||||
|
├── docker-compose.yml
|
||||||
|
├── go.mod
|
||||||
|
├── Makefile
|
||||||
|
├── LICENSE
|
||||||
|
└── README.md
|
||||||
|
```
|
||||||
|
|
||||||
# ライセンス
|
# ライセンス
|
||||||
AGPL v3
|
AGPL v3
|
||||||
詳しくはLICENSEファイルをご覧ください。
|
詳しくはLICENSEファイルをご覧ください。
|
||||||
0
cmd/server/main.go
Normal file
0
cmd/server/main.go
Normal file
0
configs/config.development.yaml
Normal file
0
configs/config.development.yaml
Normal file
0
configs/config.production.yaml
Normal file
0
configs/config.production.yaml
Normal file
0
configs/config.yaml
Normal file
0
configs/config.yaml
Normal file
0
docker-compose.yml
Normal file
0
docker-compose.yml
Normal file
0
internal/config/config.go
Normal file
0
internal/config/config.go
Normal file
0
internal/database/database.go
Normal file
0
internal/database/database.go
Normal file
0
internal/handler/comment.go
Normal file
0
internal/handler/comment.go
Normal file
0
internal/handler/like.go
Normal file
0
internal/handler/like.go
Normal file
0
internal/middleware/cors.go
Normal file
0
internal/middleware/cors.go
Normal file
0
internal/model/comment.go
Normal file
0
internal/model/comment.go
Normal file
0
internal/model/like.go
Normal file
0
internal/model/like.go
Normal file
0
internal/repository/comment_repo.go
Normal file
0
internal/repository/comment_repo.go
Normal file
0
internal/repository/like_repo.go
Normal file
0
internal/repository/like_repo.go
Normal file
0
internal/router/router.go
Normal file
0
internal/router/router.go
Normal file
0
internal/service/comment_service.go
Normal file
0
internal/service/comment_service.go
Normal file
0
internal/service/like_service.go
Normal file
0
internal/service/like_service.go
Normal file
0
migrations/001_create_likes.sql
Normal file
0
migrations/001_create_likes.sql
Normal file
0
migrations/002_create_comments.sql
Normal file
0
migrations/002_create_comments.sql
Normal file
Reference in New Issue
Block a user