Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

SkillsFundingAgency/das-employerdemand-web

Repository files navigation

⛔Never push sensitive information such as client id's, secrets or keys into repositories including in the README file ⛔

Employer Demand Web

UK Government logo

Build Status Quality Gate Status Jira Project Confluence Project License

Employer Demand is a service to connect employers who cannot find appropriate training provision with providers who can potentially provide that provision.

How It Works

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.

🚀 Installation

Pre-Requisites

  • 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

Config

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/"
    }
}

Local Running

Mock Server

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

Using APIM

Employer Demand web can be run alongside APIM, along with its dependencies, for end to end running.

Provider Authentication

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.

Dev DataProtector

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",

🔗 External Dependencies

Provider Authentication is managed via Provider IDAMS

Technologies

  • .NetCore 3.1
  • ASP.NET MVC
  • NLog
  • Azure Table Storage
  • NUnit
  • Moq
  • FluentAssertions

🐛 Known Issues

  • Do not run in IISExpress

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published