'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 ofweb.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 ofweb.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.
- From an Administrator command prompt, run
app-setup-dev.cmd
to set up a site in IIS. - Build the solution
- In
~\web.config
uncomment and complete theProxy
section, and update the app settings shown above.