Official upstream source mirror. Do not make UH changes here.
  • Ruby 75%
  • HTML 18.1%
  • JavaScript 4.7%
  • SCSS 2.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-28 16:10:17 +01:00
.github build(deps): bump ruby/setup-ruby from 1.324.0 to 1.325.0 2026-09-24 17:02:55 +00:00
.yarn/releases Update Yarn to version 4 latest 2026-09-09 10:38:15 +01:00
app Merge pull request #5849 from alphagov/fix-page-history-analytics-some-more 2026-09-28 16:10:17 +01:00
bin Revert "Revert "[PNP-9951] Upgrade to Ruby 4"" 2026-04-28 11:13:09 +01:00
config Rename flexible content css to full-width and make it a helper 2026-09-24 12:08:12 +01:00
docs Add ADR 0005 to explain reasons behind this PR 2026-09-24 12:08:50 +01:00
lib Remove local content test and fixture files 2026-09-24 12:08:11 +01:00
log Add gitkeep to log so Docker can compile production assets 2018-01-08 11:27:50 +00:00
public Run app:update 2026-02-02 17:08:46 +00:00
spec Merge pull request #5843 from alphagov/transaction-layout 2026-09-28 16:09:40 +01:00
.dockerignore Remove obsolete Jenkinsfile. 2024-01-31 16:20:48 +00:00
.erb_lint.yml Update erb_lint 2025-10-06 09:27:59 +01:00
.gitignore Add .DS_Store to gitignore 2025-09-26 12:56:48 +01:00
.govuk_dependabot_merger.yml Do not automerge Rails 2024-05-17 10:56:32 +01:00
.nvmrc Configure nvm to use the latest LTS version of node 2026-01-21 12:21:38 +00:00
.nycrc Remove map javascript 2026-07-20 13:58:29 +01:00
.rspec Install RSpec and init 2024-07-30 10:09:46 +01:00
.rubocop.yml configure rubocop for rspec 2025-01-08 12:55:48 +00:00
.ruby-version Revert "Revert "[PNP-9951] Upgrade to Ruby 4"" 2026-04-28 11:13:09 +01:00
.yarnrc.yml Update new yarn config values 2026-09-09 10:40:00 +01:00
app.json Remove static app variables 2026-01-13 17:06:54 +00:00
config.ru Fix Style/StringLiterals 2020-01-17 12:53:29 +00:00
CONTRIBUTING.md Add contribution guidelines for frontend 2024-10-31 10:49:15 +00:00
Dockerfile Revert "Revert "[PNP-9951] Upgrade to Ruby 4"" 2026-04-28 11:13:09 +01:00
Gemfile Remove govuk_content_item_loader gem 2026-09-01 10:56:58 +01:00
Gemfile.lock Merge pull request #5845 from alphagov/dependabot/bundler/simplecov-1.3.1 2026-09-28 09:58:31 +01:00
LICENCE.txt Correct copyright notice 2015-02-16 08:45:51 +00:00
package.json Remove leaflet references 2026-09-24 09:16:46 +01:00
Procfile.dev Add environment variable to trigger debugger initialisation 2026-02-26 14:47:15 +00:00
Rakefile Update CI, Rake to use RSpec 2024-07-30 10:09:46 +01:00
README.md Add CSV preview page to docs 2026-09-15 10:20:07 +01:00
startup.sh Remove static app variables 2026-01-13 17:06:54 +00:00
yarn.lock Merge pull request #5833 from alphagov/update-nyc-dependencies 2026-09-24 09:40:09 +01:00

Frontend

Frontend renders the citizen-facing part of content items, and some hard-coded routes.

The content items are obtained from ContentStore using the ContentStore#content_item method of gds-api-adapters.

Formats

Format Schema/Document Type Live example(s)
AB testing hardcoded https://www.gov.uk/help/ab-testing
Answer answer https://www.gov.uk/national-minimum-wage-rates
Asset placeholder hardcoded https://assets.publishing.service.gov.uk/government/placeholder
Calendars calendar https://www.gov.uk/bank-holidays
https://www.gov.uk/when-do-the-clocks-change
Call for evidence schema: call_for_evidence https://www.gov.uk/government/calls-for-evidence/credit-union-common-bond-reform
https://www.gov.uk/government/calls-for-evidence/safety-of-journalists-call-for-evidence
https://www.gov.uk/government/calls-for-evidence/review-of-civil-legal-aid-call-for-evidence
Case studies case_study https://www.gov.uk/government/case-studies/aiding-capability-decision-making-for-the-royal-navy
Consultation consultation https://www.gov.uk/government/consultations/soft-drinks-industry-levy
Cookies hardcoded https://www.gov.uk/help/cookies
Corporate information pages corporate_information_page https://www.gov.uk/government/organisations/forensic-science-regulator/about
https://www.gov.uk/government/organisations/forensic-science-regulator/about/accessible-documents-policy
CSV Preview hardcoded https://www.gov.uk/csv-preview/6a3006add95ffddb05d4b078/Birthday_2026_overseas_international_list_order_british_empire.csv
Detailed Guide detailed_guide https://www.gov.uk/guidance/selling-second-hand-vehicles-using-a-vat-margin-scheme
Document collection document_collection https://www.gov.uk/government/collections/statutory-guidance-schools
Fatality notice fatality_notice https://www.gov.uk/government/fatalities/corporal-lee-churcher-dies-in-iraq
Field of operation field_of_operation https://www.gov.uk/government/fields-of-operation/united-kingdom
Fields of operation fields_of_operation https://www.gov.uk/government/fields-of-operation
Find electoral office hardcoded https://www.gov.uk/contact-electoral-registration-office
Find local council hardcoded https://www.gov.uk/find-local-council
Foreign travel advice index travel_advice_index https://www.gov.uk/foreign-travel-advice
Foreign travel advice travel_advice https://www.gov.uk/foreign-travel-advice/azerbaijan
Get involved get_involved https://www.gov.uk/government/get-involved
Gone gone https://www.gov.uk/government/collections/greenhouse-gas-conversion-factors-for-company-reporting
Guide guide https://www.gov.uk/log-in-register-hmrc-online-services
Help index hardcoded https://www.gov.uk/help
Help help_page https://www.gov.uk/help/browsers
History history https://www.gov.uk/government/history/10-downing-street
HMRC Manual hmrc_manual https://www.gov.uk/hmrc-internal-manuals/capital-gains-manual
HMRC Manual Section hmrc_manual_section https://www.gov.uk/hmrc-internal-manuals/employment-income-manual/eim11202
Homepage homepage https://www.gov.uk/
How Government Works how_government_works https://www.gov.uk/government/how-government-works
HTML Publication html_publication https://www.gov.uk/government/publications/car-show-me-tell-me-vehicle-safety-questions/car-show-me-tell-me-vehicle-safety-questions
https://www.gov.uk/government/publications/skilled-worker-visa-temporary-shortage-list/skilled-worker-visa-temporary-shortage-list
https://www.gov.uk/government/publications/usa-apply-for-a-uk-visa/apply-for-a-uk-visa-in-the-usa
Licence finder schema: specialist_document https://www.gov.uk/find-licences/premises-licence
document_type: licence_transaction https://www.gov.uk/find-licences/zoo-licence
Local transaction local_transaction https://www.gov.uk/school-term-holiday-dates
https://www.gov.uk/apply-council-tax-reduction
Manual manual https://www.gov.uk/guidance/the-highway-code
Manual Section manual_section https://www.gov.uk/guidance/systems-change-learning/1-securing-strategic-buy-in-and-alignment
News Article news_article https://www.gov.uk/government/news/the-personal-independence-payment-amendment-regulations-2017-statement-by-paul-gray
Person person https://www.gov.uk/government/people/matthew-hancock
Place place https://www.gov.uk/register-offices
https://www.gov.uk/register-offices
Publication publication https://www.gov.uk/government/publications/budget-2016-documents
Roadmap hardcoded https://www.gov.uk/roadmap
Service Manual guide service_manual_guide https://www.gov.uk/service-manual/agile-delivery/how-the-discovery-phase-works
Service Manual homepage service_manual_homepage https://www.gov.uk/service-manual
Service Manual service standard page service_manual_service_standard https://www.gov.uk/service-manual/service-standard
Service Manual topic service_manual_topic https://www.gov.uk/service-manual/agile-delivery
https://www.gov.uk/service-manual/user-research
https://www.gov.uk/service-manual/helping-people-to-use-your-service
Service toolkit page service_toolkit_page https://www.gov.uk/service-toolkit
Simple smart answer simple_smart_answer https://www.gov.uk/sold-bought-vehicle
https://www.gov.uk/contact-the-dvla
Specialist Document schema: specialist_document https://www.gov.uk/cma-cases/veterinary-services-market-for-pets-review
https://www.gov.uk/aaib-reports/aaib-investigation-to-aw189-g-fsar
https://www.gov.uk/protected-food-drink-names/pitahaya-amazonica-de-palora
Speech speech https://www.gov.uk/government/speeches/motorcycle-testing
Statistical Data Set statistical_data_set https://www.gov.uk/government/statistical-data-sets/local-government-pension-scheme-funds-summary-data-2011-to-2012
Statistics announcement statistics_announcement https://www.gov.uk/government/statistics/announcements/diagnostic-imaging-dataset-for-september-2015
Topical Event topical_event https://www.gov.uk/government/topical-events/youth-matters-national-youth-strategy
Topical Event About Page topical_event_about_page https://www.gov.uk/government/topical-events/western-balkans-summit-london-2018/about
Transaction start page transaction https://www.gov.uk/register-to-vote
https://www.gov.uk/vehicle-tax
https://www.gov.uk/find-a-job
Working group working_group https://www.gov.uk/government/groups/abstraction-reform
Worldwide corporate information page worldwide_corporate_information_page https://www.gov.uk/world/organisations/british-embassy-dakar/about/recruitment
Worldwide office page worldwide_office https://www.gov.uk/world/organisations/high-commission-victoria/office/british-high-commission-victoria
Worldwide organisation page worldwide_organisation https://www.gov.uk/world/organisations/high-commission-victoria

Nomenclature

  • format: our phrase for a type of content

Technical documentation

Frontend is a Ruby on Rails application and should follow our Rails app conventions.

See the CONTRIBUTING guide for more information.

Dependencies

Running the application

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, execute the following command:

./startup.sh --live

which uses content from production.

Note that you will have to have GOV.UK Locations API running locally. A valid dataset will have to be loaded for Locations API or postcode lookups will not succeed. This is part of the standard GOV.UK data replication steps.

Running the test suite

bundle exec rake

Further documentation

Licence

MIT Licence