Skip to content
Proyek

webdevcody/survive-the-night-game

Lihat di GitHub

Tentang

Website

Gim dan emulasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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

Jelajahi proyek terkait

Memuat…