DotNet Core 8 and any supported IDE for DEV running.
Azure Storage Emulator
Find Apprenticeship Training Service. The service is for finding training courses and training providers that can deliver the standard you have searched for.
You must have the Azure Storage emulator running, and in that a table created called Configuration
in that table add the following:
PartitionKey: LOCAL
RowKey: SFA.DAS.FindApprenticeshipTraining.Web_1.0
Data:
{
"FindApprenticeshipTrainingApi": {
"Key": "test",
"BaseUrl": "http://localhost:5003/",
"PingUrl": "http://localhost:5003/"
},
"FindApprenticeshipTrainingWeb": {
"RedisConnectionString": "",
"DataProtectionKeysDatabase": "",
"ZendeskSectionId": "1",
"ZendeskSnippetKey": "test",
"ZendeskCoBrowsingSnippetKey": "test"
}
}
In the SFA.DAS.FAT.Web project, if it does not exist already, add appSettings.Development.json file with following content:
{
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"ConfigurationStorageConnectionString": "UseDevelopmentStorage=true;",
"ConfigNames": "SFA.DAS.FindApprenticeshipTraining.Web",
"Environment": "LOCAL",
"EnvironmentName": "LOCAL",
"Version": "1.0",
"APPLICATIONINSIGHTS_CONNECTION_STRING": "",
"AllowedHosts": "*",
"cdn": {
"url": "https://das-at-frnt-end.azureedge.net"
}
}
The important part of the configuration is making sure that your BaseUrl is pointed to the MockServer url
You are able to run the website by doing the following:
- Run the console app
SFA.DAS.FAT.MockServer
- this will create a mock server on http://localhost:5003 - Start the web solution
SFA.DAS.FAT.Web
https://localhost:5004/courses/24 -> Available for new starts in future date
https://localhost:5004/courses/101 -> Course no longer available
https://localhost:5004/courses/333 -> Regulated Course
https://localhost:5004/courses/102 -> No providers at location
https://localhost:5004/courses/102/providers -> No providers at location
https://localhost:5004/courses/102/providers/10000 -> No provider available for course
https://localhost:5004/courses/12313/providers/100002?location=Coventry -> No provider at location
https://localhost:5004/courses/12313/providers/100002?location=Camden -> Provider at location