From 9704af5115a7feb284ba0106104765fcc4d9384a Mon Sep 17 00:00:00 2001 From: MaksSlyzar Date: Wed, 1 Apr 2026 16:59:39 +0300 Subject: [PATCH] update readme.md --- readme.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/readme.md b/readme.md index 4c38d8d..41fdca0 100644 --- a/readme.md +++ b/readme.md @@ -15,6 +15,34 @@ Multiplayer space-themed game built with React, Socket.io. To automatically install all dependencies in the correct sub-projects (`api`, `game-server`, `client`) at once, run: +### 1. API Server (api/.env) + +```env +MONGODB_URI=mongodb://localhost:27017 +PORT=PORT +GAME_SERVER_SECRET=game_server_pass_123 +JWT_SECRET=secret_123 +``` + +### 2. GameServer (game-server/.env) + +```env +PORT=5003 +API_SERVER_URL=http://localhost:3000/api +SERVER_NAME=Alpha-Centauri-3 +SERVER_SECRET=game_server_pass_123 +JWT_SECRET=secret_123 +DESCRIPTION="Welcome to Alpha-Centauri-3, a high-tech frontier station drifting on the edge of the known galaxy." +REGION=UK +channel_binding=require +``` + +### 3. Client (client/.env) + +```env +VITE_API_URL=http://localhost:3000/api +``` + ```bash npm run install-all npm run dev