Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Latest commit

 

History

History
68 lines (50 loc) · 1018 Bytes

README.md

File metadata and controls

68 lines (50 loc) · 1018 Bytes

Requirements

Application requires database supported by TypeORM.

NodeGyp: https://github.com/nodejs/node-gyp#installation

Installation

> npm install
> npm install gulp-cli -g

Configuration

  1. Make db.config.json using src_server/db.config.example.json
  2. Edit databse configuration
{
  "type": "postgres",
  "host": "localhost",
  "port": 5432,
  "username": "admin",
  "password": "",
  "database": "game",
  "synchronize": true, // set to false in production
  "logging": false,
  "dropSchema": false // dont set to true in production
}
  1. You can change some game settings in server_src/game/data/config.ts

Building

> npm run build

Run

> npm start

Development tools

Live transpilation

> gulp

Server nodemon

> gulp server

Auto eslint fix

> gulp lint

Cleaning build folder

> gulp clean-build