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.
A contact page:
Note that the index page is served by finder-frontend:
- alphagov/content-store - used to fetch contacts
- alphagov/static - applies the GOV.UK look and feel
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 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.
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