This solution represents the Employer Apprenticeships Service (currently pre private BETA) code base.
In order to run this solution locally you will need the following installed:
- SQL Server LocalDB - you only need the LocalDB component of SQL Server Express
- Azure SDK 2.9 (for Visual Studio) - choose the SDK version appropriate to your version of Visual Studio
- Azure Storage Explorer
- SFA.DAS.EmployerUsers IDAMS
You should run Visual Studio as an Administrator.
- 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 the cloud service will start the web application in your browser.
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
The Employer Apprenticeships Service provides a REST Api and client for accessing Employer accounts. Nuget link above.
- The API can be found in src/SFA.DAS.EAS.Api
- The client can be found in src/SFA.DAS.Account.Api.Client