No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
server
src
.gitignore
README.md
package.json
style.css
tsconfig.json
webpack.config.js

README.md

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