This repository has been archived by the owner. It is now read-only.
Serves long form single page documents on GOV.UK
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
docs/assets
features
lib/tasks
public
script
spec
.dockerignore
.gitignore
.rspec
.ruby-version
Dockerfile
Gemfile
Gemfile.lock
Jenkinsfile
LICENCE.txt
README.md
Rakefile
config.ru
startup.sh

README.md

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.