Skip to content

lekzd/script_battle_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script Battle Game

Presentation video

Local launch

  1. npm run start
  2. npm run server
  3. open localhost:8080/public in browser
  4. create or edit file ./.data/.env with data: ADMIN_PASSWORD=admin
  5. open localhost:8080/public/admin in browser
  6. 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

5: launch server

Use ts-node or PM2 to launch ./server/index.ts file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published