プロジェクト
GitHubで見る
webdevcody/survive-the-night-game
概要
Website
ゲーム・エミュレーター計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルSurvive the Night
Monorepo: website (TanStack Start on port 3000) + game-server (WebSocket on port 3001).
Prerequisites
Setup
From the repo root:
npm install
1. Database
Start Postgres:
npm run db:up
2. Environment
Copy the examples and fill in values:
| Package | Copy from |
|---|---|
| Website | packages/website/.env.example → packages/website/.env |
| Game server | packages/game-server/.env.example → packages/game-server/.env |
Minimum for local dev
packages/website/.env: setDATABASE_URL(matches the Docker DB fromdb:up),BETTER_AUTH_SECRET, andGAME_SERVER_API_KEY(any shared secret string).packages/game-server/.env: setGAME_SERVER_API_KEYto the same value as the website.
Run migrations (also runs automatically when you start the website dev server):
npm run db:migrate
Run
From the repo root, start website + game server together:
npm run dev
- App: http://localhost:3000
- Game WebSocket server: port 3001 (used by the client in the browser)
Run packages separately (optional)
npm run dev:website # website only
npm run dev:server # game server only
関連プロジェクトを探す
読み込み中…