2.7 KiB
Horde > Internals
Internals
Getting Started
Server
Source code for the Horde Server is in Engine/Source/Programs/Horde/Horde.Server. It is written in C#, using ASP.NET.
Horde uses the standard
C# coding conventions
published by Microsoft, though use tabs rather than spaces for legacy reasons. We enable most static analyzer warnings
that ship with the NET SDK, though some may be disabled through .editorconfig files.
Horde is configured to support local development by default, and can be launched by opening
Engine/Source/Programs/Horde/Horde.sln and setting Horde.Server as the default project. By default, the
server can be accessed at http://localhost:5000/account.
When debugging a local Horde server against a live deployment setting the DatabaseReadOnlyMode property in
Server.json will prevent the server from attempting any operation that will
modify the server state. Using a read-only DB account in addition is recommended for safety.
Dashboard
The Horde dashboard is a frontend client developed in TypesScript using React. To set up your machine for developing the dashboard:
- Install Node.js
- From a command line, install Yarn using:
npm install --global yarn - Navigate to the dashboard folder at
Engine\Source\Programs\Horde\HordeDashboard - Run
yarn installto install the package dependencies - Edit package.json setting the proxy property to point at your server url, for example:
http://localhost:5000 - Navigate to the admin token endpoint of your server to get an expiring access token, for example:
http://localhost:5000/api/v1/admin/token - Create a file called
.env.development.localin the root HordeDashboard folder and paste the access token in like so:REACT_APP_HORDE_DEBUG_TOKEN=eyFhbGciziJIUz - Run
yarn startto run the development web server which should open a tab to the local dashboard athttp://localhost:3000.
Docker
Horde includes a Dockerfile for creating Docker images, though its position in the Unreal Engine source tree requires
files to be staged beforehand in order to reduce the size of data copied into build images.
A BuildGraph script to perform these operations is included, under Engine\Source\Programs\Horde\HordeBuild.xml, which
can be run as follows:
RunUAT.bat Engine/Source/Programs/Horde/HordeBuild.xml -Target="Build HordeServer"