⛔Never push sensitive information such as client id's, secrets or keys into repositories including in the README file⛔
Update these badges with the correct information for this project. These give the status of the project at a glance and also sign-post developers to the appropriate resources they will need to get up and running
There are 2 applications within this repository, an Azure Function and an InnerApi. The Durable Function responds to events, and the InnerApi responds to queries (e.g GET requests) as well as some commands to carry out actions such as price change requests. All data is stored in a sql database
- A clone of this repository
- A code editor that supports .Net8
- Azure Storage Emulator (Azureite)
- Sql Server DB
- a ServiceBus namespace in azure (Visual Studio must be signed in to your citizen account)
- Azure Developer CLI
Most of the application configuration is taken from the das-employer-config repository and the default values can be used in most cases. The config json will need to be added to the local Azure Storage instance with a a PartitionKey of LOCAL and a RowKey of SFA.DAS.Funding.ApprenticeshipEarnings_1.0. The following values must be overwritten:
| Name | Value |
|---|---|
| NServiceBusConnectionString | Endpoint=[Your-Namespace] |
{
"IsEncrypted": false,
"ConfigNames": "SFA.DAS.Encoding,SFA.DAS.Apprenticeships",
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsServiceBus__fullyQualifiedNamespace": "<Your-Namespace>",
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
"EnvironmentName": "LOCAL",
"ConfigNames": "SFA.DAS.Encoding,SFA.DAS.Apprenticeships"
}
}
- Azure Storage Emulator (Azureite)
- Sql Server DB
The innerApi can be queried directly via a tool such as postman. The azure function can be triggered via a test publisher contained within the project