Skip to content
프로젝트

webdevcody/survive-the-night-game

GitHub에서 보기

소개

Website

게임 및 에뮬레이션

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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: set DATABASE_URL (matches the Docker DB from db:up), BETTER_AUTH_SECRET, and GAME_SERVER_API_KEY (any shared secret string).
  • packages/game-server/.env: set GAME_SERVER_API_KEY to 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

Run packages separately (optional)

npm run dev:website   # website only
npm run dev:server    # game server only

관련 프로젝트 살펴보기

불러오는 중…