⛔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
das-funding-apprenticeships-earnings is an Azure Durable Function which subscribes and publishes various events. Its purpose is to store and manage earnings records raised by the creation of new apprenticeships and updated via change of circumstances events.
There are 2 applications within this repository, the Azure Durable Function and an InnerApi. The Durable Function responds to events, and the InnerApi responds to queries (e.g GET requests). As well as data being stored in the durable function under the logical object of an Apprenticeship, there is also a database that stores Earnings records for query purposes.
- A clone of this repository
- A code editor that supports .Net6
- Azure Storage Emulator (Azureite)
- Sql Server DB
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.
{
"IsEncrypted": false,
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"EnvironmentName": "LOCAL",
"NServiceBusConnectionString": "UseLearningEndpoint=true",
"ApplicationSettings:LearningTransportStorageDirectory": "C:\\Git\\LocalMessageBus\\.learningtransport",
"ConfigNames": "SFA.DAS.Funding.ApprenticeshipEarnings",
"ConfigurationStorageConnectionString": "UseDevelopmentStorage=true;"
}
}
- Azure Storage Emulator (Azureite)
- Sql Server DB
The innerApi can be queried directly via a tool such as postman. The durable function uses NServiceBus learning transport for local development to handle the events. More information can be found at https://docs.particular.net/transports/learning/