Skip to content

SkillsFundingAgency/das-campaign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

das-campaign

Build Status

www.apprenticeships.gov.uk

Requirements

DotNet Core 3.1 and any supported IDE for DEV running.

Azure Storage Emulator

About

The das-campaign solution uses data from contentful, Vacancies API and DAS APIM to provide a hub for information on Apprenticeships, for employers and apprentices

Local running

You must have the Azure Storage emulator running, and in that a table created called Configuration in that table add the following:

PartitionKey: LOCAL

RowKey: SFA.DAS.Campaign_1.0

Data:

{
    "EmployerAccountBaseUrl": "https://accounts.eas.apprenticeships.education.gov.uk/",
    "ContentfulOptions": {
        "MaxNumberOfRateLimitRetries": 0,
        "PreviewApiKey": "12345",
        "UsePreviewApi": true,
        "SpaceId": "12345",
        "DeliveryApiKey": "12345"
    },
    "Mapping": {
        "StaticHeight": "120",
        "StaticWidth": "190",
        "ClientID": " ",
        "PrivateKey": " 12345",
        "ApiKey": "12345"
    },
    "FatBaseUrl": "https://findapprenticeshiptraining.apprenticeships.education.gov.uk/",
    "ConnectionStrings": {
        "ContentCacheDatabase": "",
        "SharedRedis": " "
    },
    "QueueConnectionString": "UseDevelopmentStorage=true",
    "VacanciesApi": {
        "ApiKey": "1234567890",
        "BaseUrl": "https://{vacancies-apim}/vacancies-at"
    },
    "Postcode": {
        "Url": "http://api.postcodes.io/"
    },
    "OuterApi": {
        "Key": "1234567890",
        "BaseUrl": "https://{APIM}/campaign/"
    },
    "UserDataQueueNames": {
        "RemoveUserDataQueueName": "sfa-das-cpg-unsubscribe",
        "StoreUserDataQueueName": "sfa-das-cpg-subscribe"
    },
    "UserDataCryptography": {
        "UserUrlSalt": "1234",
        "AllowedUrlCharacters": "ABCDEF",
        "UserUrlMinValue": 10
    }
}

You are able to get APIM keys for the Outer API and Vacancies if you work within the agency. A key for contenful api and google maps is also required for full running of the site.

Mock Server

When enqabled the following urls are servable, but all landing pages, hubs and articles will return the same content

  • /apprentices

  • /apprentices/becoming-apprentice

  • /apprentices/are-they-right-for-you

  • /menu

  • /apprentices/browse-apprenticeships

    The browse apprenticeships search form can be tested using the sector business and administration and a postcode of le28rd

    To enable set the configuration for the vacancies api and the outerapi base url configurations to http://localhost:5016/