1. Launch Diarkis Server in Local Environment
Introduction
This page explains the steps for launching the Diarkis server in your local environment using Diarkis Server Template. We recommend going through these steps before starting development with Diarkis.
Environment Setup
To introduce the server template, Go version 1.22 or later is required.
The installation method varies by platform, so please follow the official documentation for installation. https://go.dev/doc/install
Diarkis server development can be done on macOS, Linux, and Windows.
In Windows environments, operation is confirmed with WSL1 on Windows 10 (Ubuntu 20.04). Since WSL2 does not support UDP port forwarding, please use WSL1.
If you are not using WSL1, you can convert your WSL environment by starting PowerShell with administrative privileges and executing the command wsl --set-version Ubuntu-20.04 1
.
Generating a Project from the Server Template
First, clone the repository by executing
git clone https://github.com/Diarkis/diarkis-server-template.git
in any PATH.Execute the following command to generate the project. The output will be specified as an absolute path in
output
.
The project ID
and builder token
mentioned here are information issued to developers with a Diarkis enterprise license. Since the core of Diarkis is created as closed-source and implemented in Go, it is necessary to build using diarkis-cli.
If past versions are needed, you can either check out the tag of any version or download it from the release list.
Setup
In the generated project, execute the following command:
This will download various resources required for development (such as references for code completion).
Generating the Server Binary
To generate binaries for local use, execute the following make task:
Upon execution, Diarkis binaries will be generated under remote_bin
.
Starting the Server
Launch each MARS, HTTP, and UDP server.
Retrieving Connection Information
When mars, http, and udp are running, you can retrieve connection information with curl as follows. This completes the server startup.
The HTTP endpoint above means that authentication with uid test
was done against the UDP server. The returned information can be used by various client libraries for exchanging packets.
Last updated
Was this helpful?