Skip to content

Commit 682df61

Browse files
authored
Revise README with updated tech stack and instructions
Updated README.md to reflect changes in tech stack, development instructions, and migration commands, translating sections to Japanese.
1 parent fe25cf1 commit 682df61

1 file changed

Lines changed: 17 additions & 30 deletions

File tree

README.md

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,39 @@
22

33
五月祭・駒場祭用
44

5-
## Tech Stack
5+
## 技術スタック
66

7-
- **Frontend**: React Router v7 (SSR), TailwindCSS + DaisyUI
8-
- **Backend**: Cloudflare Workers
9-
- **Database**: Cloudflare D1 (SQLite), Drizzle ORM
10-
- **Auth**: Better-Auth (anonymous login)
7+
- **フレームワーク**: React Router v7 (SSR)
8+
- **スタイリング**: TailwindCSS + DaisyUI
9+
- **デプロイ**: Cloudflare Workers
10+
- **データベース**: Cloudflare D1 (SQLite), Drizzle ORM
11+
- **認証**: Better-Auth (anonymous login)
1112

12-
## Getting Started
13+
## 開発
1314

1415
```bash
15-
npm install
16-
npm run dev
16+
pnpm install
17+
pnpm dev
1718
```
1819

19-
## Database Migrations
20+
## マイグレーション
2021

21-
### Local Development
22+
### ローカル
2223

2324
```bash
24-
# Generate migration from schema changes
25-
npx drizzle-kit generate --name <migration_name>
25+
pnpm drizzle-kit generate --name <migration_name>
2626

27-
# Apply migration to local D1
28-
npx drizzle-kit migrate
27+
pnpm drizzle-kit migrate
2928
```
3029

31-
### Better-Auth Schema Generation
30+
### Better-Auth
3231

3332
```bash
34-
# Generate auth schema to match DB schema location
35-
npx auth generate --output ./app/lib/db/auth-schema.ts --adapter drizzle --dialect sqlite
33+
pnpx auth generate --output ./app/db/auth-schema.ts --adapter drizzle --dialect sqlite
3634
```
3735

38-
### Remote (Production)
36+
### リモート (Production)
3937

4038
```bash
41-
# Apply migration to remote D1
42-
npx wrangler d1 migrations apply hitori-mahjong-db --remote
39+
pnpm wrangler d1 migrations apply hitori-mahjong-db --remote
4340
```
44-
45-
This reads the generated SQL files from `drizzle/` and applies them to the remote D1 database.
46-
47-
## Available Scripts
48-
49-
- `npm run dev` - Start development server and **generate local D1 instance**
50-
- `npm run build` - Build for production
51-
- `npm run deploy` - Build and deploy to Cloudflare (If you push the changes to the main branch, it will trigger a new deploy)
52-
- `npm run typecheck` - Type checking
53-
- `npm run format` - Format code with Biome

0 commit comments

Comments
 (0)