初期の空ファイルとディレクトリ構成を追加、README.mdの誤字を修正

This commit is contained in:
2025-12-19 11:32:58 +09:00
parent 83dd2216f7
commit 7b07ce563e
23 changed files with 49 additions and 1 deletions
View File
View File
+49 -1
View File
@@ -1,11 +1,59 @@
# About Watanabebashi Likomment
Watanabebashi Likomennt(ライコメント)は、自身のWebサイトにいいねボタンとコメントを簡単に実装できるAPIサーバです。
Watanabebashi Likomment(ライコメント)は、自身のWebサイトにいいねボタンとコメントを簡単に実装できるAPIサーバです。
# 技術スタック
- Go/Gin
- MySQL/SQLite
- 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
詳しくはLICENSEファイルをご覧ください。
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File