Frontend renders the citizen-facing part of formats stored in the Content Store, and some hard-coded routes including the GOV.UK homepage.
Simple smart answer
Transaction start pages:
- https://www.gov.uk/ (homepage)
- https://www.gov.uk/tour (tour of GOV.UK)
- https://www.gov.uk/help (help index page)
- https://www.gov.uk/help/cookies
- https://www.gov.uk/help/ab-testing
- https://www.gov.uk/foreign-travel-advice (travel advice index page)
- https://www.gov.uk/find-local-council
- https://www.gov.uk/roadmap (GOV.UK public facing roadmap)
- https://www.gov.uk/contact-electoral-registration-office (elections API)
- https://www.gov.uk/premises-licence
- https://www.gov.uk/temporary-events-notice
- https://www.gov.uk/apply-skip-permit
- https://www.gov.uk/street-collection-licence
- https://www.gov.uk/zoo-licence
- https://www.gov.uk/premises-licence-scotland
- https://www.gov.uk/house-to-house-collection-licence
- https://www.gov.uk/public-charitable-collection-permit-scotland
- https://www.gov.uk/late-hours-catering-licence-scotland
- https://www.gov.uk/food-business-registration
- https://www.gov.uk/cooling-tower-notification
- https://www.gov.uk/performing-animals-registration
Standard survey:
Assisted digital satisfaction surveys:
- https://www.gov.uk/done/register-flood-risk-exemption
- https://www.gov.uk/done/waste-carrier-or-broker-registration
- https://www.gov.uk/done/register-waste-exemption
- format: our phrase for a type of content
- scope: each type of calendar (eg daylight saving, bank holidays) is known as a scope. A scope has its own view templates, JSON data source and primary route.
Frontend is a Ruby on Rails application and should follow our Rails app conventions.
- alphagov/static - provides shared templates, styles, and JavaScript
- alphagov/content-store - provides raw data for rendering formats
- alphagov/mapit - provides postcode lookups
- alphagov/imminence - provides places lookups (e.g. for find-my-nearest)
- alphagov/publishing-api - this app sends data to the content-store
You can use the GOV.UK Docker environment or the local startup.sh
script to run the app. Read the guidance on local frontend development to find out more about each approach, before you get started.
If you are using GOV.UK Docker, remember to combine it with the commands that follow. See the GOV.UK Docker usage instructions for examples.
If you are using the startup.sh
script, first run statichttps://github.com/alphagov/static) and execute the following command:
PLEK_SERVICE_STATIC_URI=http://static.dev.gov.uk ./startup.sh --live
which uses a local copy of static and content from production.
Note that you will have to have GOV.UK Mapit running locally. A valid dataset will have to be loaded for Mapit or postcode lookups will not succeed. This is part of the standard GOV.UK data replication steps.
bundle exec rake