summaryrefslogtreecommitdiff
path: root/CLAUDE.md
blob: 0f8b3aa9862cd435d94585e6fcf49047cc5b91fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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 がない場合)。