script_battle_game
script_battle_game copied to clipboard
Script Battle Game
Local launch
npm run startnpm run server- open
localhost:8080/publicin browser - create or edit file
./.data/.envwith data:ADMIN_PASSWORD=admin - open
localhost:8080/public/adminin browser - login with
admin/${ADMIN_PASSWORD}credentials, create room & share link
How to make your own server
1: src/common/Environment.ts
Edit constants below:
PROD_URL - http(s) server URL;
PROD_WS_URL - ws(s) server URL;
2: .env file
Create .data directory in root
Create file .env with data:
ADMIN_PASSWORD=admin
you can set any admin password to access admin panel to create new rooms
3: package.json (optional)
Edit script deploy from scripts section
to make your own deploy command for your server
4: npm run release
makes archive to deploy on server