⛔Never push sensitive information such as client id's, secrets or keys into repositories including in the README file ⛔
Employer Demand is a service to connect employers who cannot find appropriate training provision with providers who can potentially provide that provision.
Employer Demand web consumes das-apim-endpoints. The entry point to the Employer Demand journey is accessed through das-findapprenticeshiptraining. It also makes use of SFA.DAS.Provider.Shared.UI and has been designed using elements from the GOV.UK Design System.
- A clone of this repository
- DotNet Core 3.1 and any supported IDE for DEV running.
- Azure Storage Emulator if not running in DEV mode
appsettings.json file
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"ConfigurationStorageConnectionString": "UseDevelopmentStorage=true;",
"ConfigNames": "SFA.DAS.EmployerDemand.Web",
"EnvironmentName": "LOCAL",
"Version": "1.0",
"APPINSIGHTS_INSTRUMENTATIONKEY": "",
"AllowedHosts": "*",
"cdn": {
"url": "https://das-at-frnt-end.azureedge.net"
}
}
Azure Table Storage config
PartitionKey: LOCAL
RowKey: SFA.DAS.EmployerDemand.Web_1.0
Data:
{
"EmployerDemandApi":{
"Key":"test",
"BaseUrl":"http://localhost:5021/",
"PingUrl":"http://localhost:5021/"
},
"EmployerDemand":{
"RedisConnectionString":" ",
"FindApprenticeshipTrainingUrl":"https://at-findapprenticeshiptraining.apprenticeships.education.gov.uk"
},
"ProviderIdams":{
"MetadataAddress":"",
"Wtrealm":"https://localhost:5011/"
},
"ProviderSharedUIConfiguration":{
"DashboardUrl":"https://at-pas.apprenticeships.education.gov.uk/"
}
}
Employer Demand web comes with a mock server that can be run alongside the web app to remove dependencies on other solutions.
It is important that your BaseUrl in your config is pointed to the MockServer url You are able to run the website by doing the following:
- Run the console app
SFA.DAS.EmployerDemand.MockServer
- this will create a mock server on http://localhost:5021 - Start the web solution
SFA.DAS.EmployerDemand.Web
Employer Demand web can be run alongside APIM, along with its dependencies, for end to end running.
It is possible to use the Provider stub Authentication handler if you are using the mock server. This can be done by adding the following to your appsettings.development.json
file:
"StubProviderAuth": "true",
This will then automatically authenticate and add the correct claims for your session.
It is possible to use the DevDataProtectorService for encoding and decoding data in the url. To use the dev service which simply passes the data through you can enable the following in your appsettings.developement.json
file:
"DevDataProtector": "true",
Provider Authentication is managed via Provider IDAMS
- .NetCore 3.1
- ASP.NET MVC
- NLog
- Azure Table Storage
- NUnit
- Moq
- FluentAssertions
- Do not run in IISExpress