Configuration - config.json
The client application uses a config.json file to hold a few key configuration settings that are loaded when the application starts up:
Local Setup
{
"serviceUrl": "https://localhost:5200/",
"mainAppUrl": "https://localhost:5000/login/",
"appName": "Reserve Study Manager",
}
Online Setup
{
"serviceUrl": "https://api.wjp-dev.com/",
"mainAppUrl": "https://wjp-dev.com/login/",
"appName": "Reserve Study Manager"
}
serviceUrl
This is the Url to the API REST Service that handles the actual login requests. The service handles the login operations, email verification, password recovery etc.mainAppUrl
This is the Url that we redirect to - adding at=<tokenid>to the querystring - when the application successfully logs a user in.appName
The name that is displayed in the login form header.
config.json is installation specific, meaning every installation - dev, staging, production - all have their own custom versions of this file that contains their appropriate values.
The file exists in the .NET Project but is not published so each installation has to explicitly created this file.
