This project provides the Regions functions for use in the Composite UI (Shell application). The Regions are used to identify endpoints within child applications as part of their Application Registration.
Please see https://github.com/SkillsFundingAgency/dfc-composite-paths for additional details about Application Registration.
Details of the Composite UI application may be found here https://github.com/SkillsFundingAgency/dfc-composite-shell
This is a self-contained Visual Studio 2019 solution containing a number of projects (Azure functions, with associated unit test and integration test projects).
Clone the project and open the solution in Visual Studio 2019.
Item | Purpose |
---|---|
Azure Cosmos DB | Document storage |
Once you have cloned the public repo you need to remove the -template part from the configuration file names listed below.
Location | Repo Filename | Rename to |
---|---|---|
DFC.Composite.Regions.IntegrationTests | appsettings-template.json | appsettings.json |
DFC.Composite.Regions | local.settings-template.json | local.settings.json |
The project contains a "local.settings-template.json" for the functions, and a "appsettings-template.json" for the integration tests. These files contain sample appsettings for the functions and the integration test projects. To use these files, rename them to "local.settings.json" and "appsettings.json" as apprppriate and edit and replace the configuration item values with values suitable for your environment.
By default, the appsettings include a local Azure Cosmos Emulator configuration using the well known configuration values. These may be changed to suit your environment if you are not using the Azure Cosmos Emulator.
To run this product locally, you will need to configure the list of dependencies, once configured and the configuration files updated, it should be F5 to run and debug locally.
To run the project, start the web application. Once running, browse to the Swagger documentation entrypoint which is "http://localhost:7072/api/Regions/API-Definition". This will describe the functions available and from there, you can use the documentation to make HTTP calls to the Regions functions.
The Regions functions are designed to be run from within the Composite UI.
These Regions functions will be deployed as an individual deployment for consumption by the Composite UI.
- Microsoft Visual Studio 2019
- .Net Core 2.2
Please refer to https://github.com/SkillsFundingAgency/dfc-digital for additional instructions on configuring individual components like Sitefinity and Cosmos.