Appearance
Appearance
To develop and build the LiveOps Dashboard you first need to install Node.js and PNPM:
npm install -g pnpm@9
in your terminal of choice.The dashboard code is split into two parts: the core SDK, and the game-specific part written by you. To start developing your custom game-specific part you will need to first initialize a fresh dashboard project in your repo. The easiest way to accomplish this is to use the "project installer" tool in Unity Editor:
YourProjectRoot
in a terminal and type pnpm install
to install all required dependencies.Your repo layout should now look like this:
YourProjectRoot
+--- Backend
| +--- Dashboard
| +--- Server
| +--- ...
+--- MetaplaySDK
| +--- Server
| +--- ...
+--- pnpm-workspace.yaml
+--- pnpm-lock.yaml
Add the newly generated files in YourProjectRoot/Backend/Dashboard
and your repo root (including pnpm-lock.yaml
) to your source control!
The game server ships with a pre-built copy of the dashboard that it serves on port 5550. However, for development, you'll want to run a standalone version for faster iterations. This standalone version is served on port 5551. These development builds come with Node.js debugging (breakpoints inside your editor!) and file hot loading to name just a few benefits.
pnpm dev
in the dashboard project folder (ie: YourProjectRoot/Backend/Dashboard/
)q
.Once you have the LiveOps Dashboard set up and running locally, you can start configuring and customizing the LiveOps Dashboard.