summaryrefslogtreecommitdiff
path: root/CLAUDE.md
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-06-10 01:16:27 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-06-10 01:16:27 +0900
commitd083ff9083f0901e5651190c3ad720f41d5b3065 (patch)
treeb11d49bf70f4ae1b6ab13d6116784af4e5bcaa64 /CLAUDE.md
Initial setup: mosquitone-admin with official-site management scripts
Add AppSync event CRUD scripts and agent docs for managing the Gatsby/Amplify official site (www.mosquit.one). Include 2026-06-27 cre4m sod4 event data. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
-rw-r--r--CLAUDE.md68
1 files changed, 68 insertions, 0 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
new file mode 100644
index 0000000..0f8b3aa
--- /dev/null
+++ b/CLAUDE.md
@@ -0,0 +1,68 @@
+# mosquitone-admin
+
+mosquitone バンドの各システムを管理するリポジトリ。
+
+## システム構成
+
+### 公式サイト (official-site)
+
+- URL: https://www.mosquit.one
+- ホスティング: AWS Amplify (Gatsby)
+- App ID: `d33773t2lyrxkx`
+- GitHub リポジトリ: https://github.com/mosquitone/official-site-2023-dev
+- 本番ブランチ: `main`
+- リージョン: `ap-northeast-1`
+
+#### バックエンド (AppSync)
+
+- エンドポイント: `https://APP_SYNC_ENDPOINT_REDACTED/graphql`
+- API キー: `.env` の `APP_SYNC_API_KEY` 参照(`APP_SYNC_API_KEY_REDACTED`)
+- データストア: AWS AppSync + DynamoDB (Amplify DataStore)
+
+#### 主要 GraphQL 型
+
+**Event(ライブ情報)**
+| フィールド | 型 | 必須 | 説明 |
+|---|---|---|---|
+| id | ID | ✓ | UUID |
+| type | EventType | ✓ | 現状 `LIVE` のみ |
+| date | AWSDate | - | YYYY-MM-DD |
+| title | String | ✓ | イベントタイトル |
+| venueName | String | - | 会場名 |
+| published | Boolean | ✓ | 公開フラグ |
+| description | String | ✓ | 出演者など |
+| ticketFee | String | - | チケット料金 |
+| ticketURL | AWSURL | - | チケット購入 URL |
+| detailURL | AWSURL | - | 詳細 URL |
+| mainImageURL | AWSURL | - | フライヤー画像 URL |
+| shortTitle | String | - | 短いタイトル |
+| key | String | - | 識別キー(YYYYMMDD 等) |
+| venueURL | AWSURL | - | 会場 URL |
+
+## よく使うコマンド
+
+```bash
+# .env を読み込む
+source .env # または set -a; source .env; set +a
+
+# ライブ一覧を新しい順に表示
+bash official-site/list-events.sh
+
+# イベントを追加
+bash official-site/add-event.sh
+
+# Amplify を手動デプロイ(main ブランチの再ビルド)
+bash official-site/deploy.sh
+```
+
+## AWS 認証
+
+`.env` に以下を設定:
+
+```
+AWS_ACCESS_KEY_ID=...
+AWS_SECRET_ACCESS_KEY=...
+AWS_DEFAULT_REGION=ap-northeast-1
+```
+
+`aws` コマンドは `/tmp/awscli/aws/dist/aws` を使用(システムに AWS CLI がない場合)。