Skip to content

Project Setup

Download Source Code

git clone [REPOSITORY_URL]
cd [PROJECT_DIRECTORY]

Environment Variables Setup

Configure the following Vault configuration in appsettings.json:

{
  "Vault": {
    "Address": "",
    "Token": "",
    "MountPath": "",
    "Environment": "",
    "RetryAttempts": 3,
    "RetryInterval": "00:00:02",
    "Module": "[SERVICE_NAME]"
  }
}

Configure the following Loki grafana configuration in appsettings.json:

{
  "ServiceName": "[SERVICE_NAME]"
}

Set Environment Variables with the following PowerShell commands:

# Vault Configuration
setx VAULT_ADDRESS "http://[VAULT_HOST]:8200"
setx VAULT_TOKEN "[VAULT_ROOT_TOKEN]"
setx VAULT_MOUNT_PATH "[VAULT_MOUNT_PATH]"
setx VAULT_ENVIRONMENT "[VAULT_ENVIRONMENT]"

Running with Visual Studio

  1. Open Serender.[SERVICE_NAME].sln file with Visual Studio 2022
  2. Set Serender.Bootstrap project as startup project
  3. Run the project with F5

The project will automatically on first run: - Fetch configurations from Vault - Create databases for tenants - Run migrations