This repository contains the web frontend as well as the Electron based desktop client, which builds upon that frontend.
yarn install # Install dependencies
yarn run dev # Run the frontend on localhost:3000
You can also specify the API host that the frontend should use as well as if secure connections should be used (https, wss) as environment variables. E.g. on UNIX systems:
API_HOST=dev.wotw.orirando.com API_SECURE=true yarn run dev
The API host will default to 127.0.0.1:8081
and secure connections are disabled by default, which matches the default configuration for ori-community/wotw-rando-server
.
In addition to running the web frontend, to launch the desktop client, run:
# Launch the web frontend (PLATFORM is win32 or linux)
PLATFORM=win32 API_HOST=dev.wotw.orirando.com API_SECURE=true yarn run dev
cd electron
yarn install # Install Launcher dependencies
yarn run electron:serve
On Windows, the base directory when running in development mode is C:\moon
. The default settings of ori-community/wotw-rando-client
should automatically install into C:\moon\randomizer
. You might need to copy additional files in there. The easiest way is to install an official release of the Randomizer into C:\moon
and build ori-community/wotw-rando-client
afterwards to override the binaries to the newly compiled ones.