Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

alphagov/specialist-frontend

Repository files navigation

Specialist frontend

Specialist documents are now rendered by government-frontend. This application is being retired.

Purpose

Displays long form single page documents published via alphagov/specialist-publisher.

Specialist frontend screenshot

Examples

Dependencies

Running the application

./startup.sh

The app should start on http://localhost:3065 or http://specialist-frontend.dev.gov.uk on GOV.UK development machines.

./startup.sh --live

This will run the app and point it at the production GOV.UK content-store and static instances.

or you can run using bowler in the VM from cd /var/govuk/development/:

bowl specialist-frontend

If you are using the GDS development virtual machine then the application will be available on the host at http://specialist-frontend.dev.gov.uk/

Running the test suite

$ bundle exec rake

Adding a new document type

  1. Add a new presenter in app/presenters for the new document type.
  2. Add the mapping for the new presenter to its document type in the document_presenter method in app/controllers/specialist_documents_controller.rb.