Skip to content

east-sussex-county-council/Escc.Libraries.BranchFinder

Repository files navigation

Escc.Libraries.BranchFinder

'Find your library' tool for www.eastsussex.gov.uk.

This tool relies on two external tools:

  • an implementation of the GOV.UK locate-api, which can look up a postcode and return a latitude and longitude for the centre point.

    This requires two entries in the appSettings section of web.config:

      <appSettings>
      	<add key="LocateApiToken" value="12345"/>
          <add key="LocateApiAuthorityUrl" value="https://hostname/locate/authority?postcode={0}"/>
      </appSettings>
    
  • an API, defined in the Escc.EastSussexGovUK.Umbraco project, which provides library data as JSON.

    This requires the URL to be set in the appSettings section of web.config:

      <appSettings>
      	<add key="LibraryDataUrl" value="https://hostname/umbraco/api/location/list?type=Library"/>
      </appSettings>
    

Both of these are implemented as interfaces which can be replaced with alternative implementations.

Development setup steps

  1. From an Administrator command prompt, run app-setup-dev.cmd to set up a site in IIS.
  2. Build the solution
  3. In ~\web.config uncomment and complete the Proxy section, and update the app settings shown above.