Skip to content

setup dev client application

Roman Krejčík edited this page May 11, 2021 · 3 revisions

Setting up the client application.

The client application can be found here: github.com/farin/JCloisterZone-Client

Requirements:

  • yarn
  • NodeJS
  • VS C++ package

Steps:

  1. Download the git repo
  2. run yarn install
    1. fix errors.
  3. run yarn run dev
    1. if application starts 👍

Client application use dev engine

  1. Go to %AppData%
    1. open 'Electron/jcz-config.json'
    2. edit:
      1. 'devMode': 'true'
      2. 'enginePath': 'localhost:9000'
  2. start local engine: local engine setup
  3. run yarn run dev

Environment variables

  • JCZ_CONFIG - path to file - use different json settings file
  • JCZ_NETWORK_DELAY - range - simulate network delay to host, each messages is randomly delaye in given range eg JCZ_NETWORK_DELAY=100-500 means random delay between 100 and 500 miliseconds
Clone this wiki locally