Skip to content

SkillsFundingAgency/das-findapprenticeship-web

Repository files navigation

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

das-findapprenticeship-web

UK Government logo

Build Status

Quality Gate Status

License

About

The Find an apprenticeship service is used by jobseekers and potential apprentices looking for an apprenticeship. The Find an Apprenticeship requires GovOne login to create a candidate profile and submit an application.

🚀 Installation

Pre-Requisites

  • A clone of this repository
  • The Outer API das-apim-endpoints should be available either running locally or accessible in an Azure tenancy.
  • The Inner API das-candidate-account-api should be available either running locally or accessible in an Azure tenancy.

Config

You can find the latest config file in das-employer-config repository

In the web project, if it does not exist already, add AppSettings.Development.json file with the following content:

{
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "ConfigurationStorageConnectionString": "UseDevelopmentStorage=true;",
  "ConfigNames": "SFA.DAS.FindApprenticeship.Web,SFA.DAS.Candidate.GovSignIn",
  "EnvironmentName": "LOCAL",
  "Version": "1.0",
  "APPINSIGHTS_INSTRUMENTATIONKEY": "",
  "AllowedHosts": "*",
  "cdn": {
    "url": "https://das-test-frnt-end.azureedge.net"
  },
  "ResourceEnvironmentName": "LOCAL",
  "StubAuth": "true"
}

Make sure you have GovSignIn configuration set up from [das-employer-config repository] (https://github.com/SkillsFundingAgency/das-employer-config/blob/master/das-shared-config/SFA.DAS.Candidate.GovSignIn.json)

using:

  • PartitionKey: LOCAL
  • RowKey: SFA.DAS.Candidate.GovSignIn_1.0
  • Data: (config as above)

Technologies

  • .NetCore 8.0
  • NUnit
  • Moq
  • FluentAssertions
  • Azure App Insights
  • MediatR
  • Redis

Running

  • Open command prompt and change directory to /src/SFA.DAS.FAA.Web/
  • Run the web project /src/SFA.DAS.FAA.Web.csproj

MacOS

ASPNETCORE_ENVIRONMENT=Development dotnet run

Windows cmd

set ASPNETCORE_ENVIRONMENT=Development
dotnet run
  • Open second command prompt and change directory to /src/SFA.DAS.FAA.MockServer/
  • Run the mock server project, this creates a mock server on http://localhost:5027/

MacOS

ASPNETCORE_ENVIRONMENT=Development dotnet run

Windows cmd

set ASPNETCORE_ENVIRONMENT=Development
dotnet run
  • Browse to https://localhost:7276/apprenticeshipsearch
  • Make sure the FindAnApprenticeshipOuterApi BaseUrl is pointing at the mock server base url.

Application logs

Application logs are logged to Application Insights and can be viewed using Azure Monitor at https://portal.azure.com

Useful URLs

Home

https://localhost:7276/apprenticeshipsearch -> Home page listing current of available apprenticeships

Search

https://localhost:7276/apprenticeshipsearch?sort=AgeAsc -> Recently advertised vacancies

https://localhost:7276/apprenticeshipsearch?sort=ClosingAsc -> Closing soon vacancies

https://localhost:7276/apprenticeshipsearch?searchTerm=&location=Coventry%2C+West+Midlands&distance=10&sort=DistanceAsc -> Displays vacancies within 10 miles of Coventry

https://localhost:7276/apprenticeshipsearch?searchTerm=random -> Displays no search results page

Vacancy

https://localhost:7276/apprenticeship/VAC1000012484 -> View vacancy details

https://localhost:7276/apprenticeship/VACABC1000012484 -> Vacancy not found

https://localhost:7276/saved-vacancies -> Saved Vacancies

Browse by interests

https://localhost:7276/browse-by-interests -> Browse by your interests

Applications

https://localhost:7276/applications?tab=Started -> View applications that are started

https://localhost:7276/applications?tab=Submitted -> View applications that are submitted

https://localhost:7276/applications?tab=Successful -> View applications that are successful

https://localhost:7276/applications?tab=Unsuccessful -> View applications that are Unsuccessful

Profile

https://localhost:7276/settings -> Candidate/User Settings

License

Licensed under the MIT license

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published