Contacts Frontend
Contacts are now rendered by government-frontend. This application is being retired.
Display different contact items for an organisation on GOV.UK, fetched from content store.
Contacts are published by alphagov/contacts-admin.
Live examples
A contact page:
Note that the index page is served by finder-frontend:
Dependencies
- alphagov/content-store - used to fetch contacts
- alphagov/static - applies the GOV.UK look and feel
Running the application outside the GOV.UK VM
To start the app, run the following in the terminal:
$ PLEK_SERVICE_STATIC_URI=assets.digital.cabinet-office.gov.uk \
PLEK_SERVICE_CONTENT_STORE_URI=https://www.gov.uk/api \
./startup.sh
This sets the content-store
and static
to use the production apps.
You should then be able to navigate to: http://0.0.0.0:3074/government/organisations/hm-revenue-customs/contact/customs-excise-and-vat-fraud-reporting
Running the application in the GOV.UK VM
Running using bowler in the VM from cd /var/govuk/development/:
bowl contacts-frontend
If you are using the GDS development virtual machine then the application will be available on the host at http://contacts-frontend.dev.gov.uk/government/organisations/hm-revenue-customs/contact/air-passenger-duty. Note: To view the above page, you will need to have replicated data from preview.
Running the test suite
bundle exec rake
To run the JavaScript tests, make sure you have Static running locally and run:
RAILS_ENV=test bundle exec rake spec:javascript