Skip to content

Commit 00b1a34

Browse files
authored
カレンダーの状態管理をリファクタリング (#52)
* migration 管理を README に反映 * 編集状態を ref から state に * ref の早期 return * update fullcalendar * editingSlots/viewingSlots → matrix → events のフローで refactor * findRun を切り出し * CalendarMatrix のクラスを分割 * fix format
1 parent 0010e7a commit 00b1a34

File tree

7 files changed

+414
-284
lines changed

7 files changed

+414
-284
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,23 @@
2222
npm ci
2323
```
2424

25-
Prisma Client の生成
25+
`server/.env.sample` をコピーして `server/.env` を作成
26+
27+
`client/.env.local.sample` をコピーして `client/.env.local` を作成
28+
29+
開発用データベースの起動
2630

2731
```sh
28-
cd server
29-
npx prisma generate
32+
docker compose up
3033
```
3134

32-
`server/.env.sample` をコピーして `server/.env` を作成
35+
スキーマの反映
36+
37+
```sh
38+
cd server
39+
npx prisma migrate dev
40+
```
3341

34-
`client/.env.local.sample` をコピーして `client/.env.local` を作成
3542
### 起動
3643

3744
開発用データベースの起動

0 commit comments

Comments
 (0)