Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@

### 必要なパッケージ

- Bun
- Bun >= v1.2

### 環境構築

1. `bun install` を実行します。
2. `.env` を作成し、 `.env.sample` をコピーします
3. `bun dev` を実行すると、 <http://localhost:5173> でフロントエンドサーバーが起動し、 <http://localhost:3000> でバックエンドのサーバーが起動します。

0. `bun clean` で `.env` 以外の不要なファイルが消えます。
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
"lefthook": "^1.10.10"
},
"scripts": {
"prepare": "bun run :prepare && (cd web; bun install --frozen-lockfile) && (cd server && bun install --frozen-lockfile)",
":prepare": "lefthook install",
"postinstall": "(cd server && bun install --frozen-lockfile); (cd web && bun install --frozen-lockfile)",
"prepare": "lefthook install",
"dev": "bun --env-file=./.env :dev",
":dev": "trap 'kill 0' EXIT; (cd web && bun dev) & (cd server && bun dev) & wait",
"check:fix": "bun biome check . --fix --unsafe && bun run build",
"fix": "# only format \nbun biome check . --fix --unsafe",
"check:fix": "bun fix && bun run build",
"check": "bun biome check . && bun run build",
"build": "(cd web && bun run build) && (cd server && bun run build)",
"clean": "rm -r node_modules && rm -r **/node_modules && rm web/dist -r",
"clean": "rm -r node_modules; rm -r **/node_modules; rm -r web/.next web/dist; true",
"dev-db": "./scripts/devdb.sh"
}
}