Skip to content

ELifeRPG/Core

Repository files navigation

ELifeRPG Core

The core project is responsible for persistence, configuration and administration of the game modification.

Releases MIT License Codacy Badge Codacy Badge

Features

  • Components:
    • Rest-API for the modification
    • Web-UI for several target-audiences like Players, Moderators, Administrators
  • Accounts/Players, Characters, Companies, Economy configuration
  • Auditing of important state changes

Getting started

Setup

Please refer to the server setup guide for installing ELifeRPG to your server.

Prepare environment

Dependencies

A list of dependencies which can be started by using (docker compose)|(podman-compose) up -d

  • PostgreSQL on port 5432
    • additionally Adminer on port 8080

Local secrets

You need to configure your local secrets which are not meant to be shared among developers using dotnet user-secrets. Since the projects do use the same user-secrets-id, we can do it only for the most common project, which is the Migrator:

# required: the steam-api key
dotnet user-secrets --project src/Migrator set "ELifeRPG:SteamApiKey" "<your-steam-api-key>"
# optional: override connection-string to postgresql
dotnet user-secrets --project src/Migrator set "ConnectionStrings:Database" "Host=localhost;Database=foo;Username=bar;Password=baz"

Development hints

EF Migrations

To use dotnet-ef tool, you need to specify the project and startup project like this:

dotnet ef --project src/Infrastructure --startup-project src/Migrator <command>