Running Diarkis Server In Local Environment
We will explain how to prepare for local Diarkis server development.
Preparation
Make sure you have golang 1.16 or higher version. If not, please install it.
Diarkis server development can be done on Linux or macOS.
This document has been tested on Ubuntu 20.04 (WSL1 on Windows 10).
Please use WSL1 because WSL2 does not support UDP forwarding.
If you are not using WSL1, you can start PowerShell with administrator privileges and use the command "wsl --set-version Ubuntu-20.04 1" to convert the WSL environment.
Diarkis CLI Installation
Download the CLI for your environment from here and pass the PATH.
If PATH is passed, the following commands will work.
Download and Deployment of Server Templates
Download the server template from here and go to the directory where you extracted it.
You can generate boilerplate for your project with the following command
Do not include "/" at the end of the output value.
When the command is executed, the boilerplate of the server will be extracted to the path specified by output=.
Build with CLI
*In case of macOS
By adding the following description to build.yml, binaries for macOS will be generated. (If no description is added, binaries for Linux will be generated.)
Go to the boilerplate directory and execute the following command to generate a Diarkis server binary in the remote_bin directory.
Grant execution rights to the generated binary.
Start locally
Run mars
Run http
Run udp
Obtaining connection information
If mars, http, or udp is running, connection information can be retrieved.
Last updated