Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

scottcowan/das-employerapprenticeshipsservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Employer Apprenticeships Service (BETA)

This solution represents the Employer Apprenticeships Service (currently pre private BETA) code base.

Build

Build Status

NuGet Badge

Running locally

Requirements

In order to run this solution locally you will need the following installed:

You should run Visual Studio as an Administrator.

Setup

  • Run DevInstall.ps1 in an Administrator PowerShell window
  • Running the RunBuild.bat (FAKEBuildScript) will expose any dependency issues and also download all required packages
  • Publishing the Database projects (SFA.DAS.EAS.Employer_Account.Database and SFA.DAS.EAS.Employer_Financial.Database) will provision the local DB instance with relevent seed data.
  • In the Azure Storage Explorer, connect to local storage. In the "(Development)" storage account, create a new local table named "Configuration" and load the following row data:
    • PartitionKey => LOCAL
    • RowKey => SFA.DAS.EmployerApprenticeshipsService_1.0
    • Data => Contents of the environment configuration JSON document (found in src/SFA.DAS.EmployerApprenticeshipsService.Web\App_Data\LOCAL_SFA.DAS.EmployerApprenticeshipsService.Web_1.0.json). Please note this does not contain any keys required for API integration.
  • Update the connection string in the JSON to point at your LocalDB instance (look around in Visual Studio's SQL Server Object Explorer)

Running

Running the cloud service will start the web application in your browser.

Feature Toggle

You can limit areas of the site by adding them to a list, in the controller action format, or having a * to denote all actions within that controller. Below is an example of the config required:

{   "Data": [     {       "Controller": "EmployerTeam",       "Action": "Invite"     }   ] }

This is added to the configuration table of your local azure storage, with the PartiionKey being LOCAL and the RowKey being SFA.DAS.EmployerApprenticeshipsService.Features_1.0

Account API

The Employer Apprenticeships Service provides a REST Api and client for accessing Employer accounts. Nuget link above.