Files
WB-Likommmet/README.md

59 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# About Watanabebashi Likomment
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ファイルをご覧ください。