Project Setup
Download Source Code
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:
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
- Open Serender.[SERVICE_NAME].sln file with Visual Studio 2022
- Set Serender.Bootstrap project as startup project
- Run the project with F5
The project will automatically on first run: - Fetch configurations from Vault - Create databases for tenants - Run migrations