Skip to content
프로젝트

소개

SIGame web client

게임 및 에뮬레이션

이 수치를 측정하는 방법

측정된 스타 증가

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

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

README.md

Original

SIGame (trivia game) client running in web, on desktop and in Steam (with the help of Tauri).

Available clients can be found here: https://vladimirkhil.com/si/game

For compilation and running you need Node.js version 18.15.0 or higher.

Used technologies: Typescript, Webpack (with loaders and plugins), React, Redux, Redux Thunk, SignalR, TSLint, Jest, Tauri.

Run:

npm install
npm run start

The development server will automatically open your browser to http://localhost:8080.

Build:

npm install
npm run build-prod

Testing

SIOnline includes multiple testing approaches:

Unit Tests

Run Jest unit tests for components and logic:

npm test

End-to-End Tests

Run Playwright E2E tests for complete user flows:

# Run all E2E tests
npm run test:e2e

# Run in UI mode (interactive) - REQUIRES display/X Server
# Only works on local machines with graphical display
npm run test:e2e:ui

# Run in debug mode (step-through)
npm run test:e2e:debug

Note: The UI mode (test:e2e:ui) requires a graphical environment and will not work in headless environments like CI pipelines or GitHub Codespaces. Use npm run test:e2e instead in those environments.

Integration Test

Comprehensive game flow test without UI (connects to live server).

Disabled by default - only runs when explicitly enabled during manual development:

RUN_INTEGRATION_TEST=1 npm run test GameIntegration.test.ts

See test/GAME_INTEGRATION_TEST.md for details.

Manual Testing

For detailed instructions on visual testing with UI, see TESTING.md.

Mock Service Worker (MSW)

API mocking for testing without a live server. See docs/TESTING_WITH_MSW.md for details.

Desktop build

tauri/src-tauri/tauri.conf.json:

"beforeBuildCommand": "npm run build", "frontendDist": "../dist"

tauri/vite.config.ts:

comment out: root: '../dist'

Steam build

tauri/src-tauri/tauri.conf.json:

"beforeBuildCommand": "", "frontendDist": "../../dist"

tauri/vite.config.ts:

uncomment: root: '../dist'

Set new version in Cargo.toml and tauri.conf.json

run: npm run build-prod tauri/build-steam.ps1

관련 프로젝트 살펴보기

불러오는 중…