Skip to content

alphagov/frontend

Folders and files

NameName
Last commit message
Last commit date
Mar 4, 2025
Apr 3, 2023
Mar 24, 2025
Sep 5, 2024
Mar 20, 2025
Mar 24, 2025
Mar 4, 2025
Jan 8, 2018
Mar 20, 2025
Jan 31, 2024
Jan 16, 2025
Feb 21, 2025
May 17, 2024
Aug 2, 2024
Feb 21, 2025
Jul 30, 2024
Jan 8, 2025
Dec 9, 2024
Apr 3, 2023
Oct 31, 2024
Dec 9, 2024
Jan 15, 2025
Mar 25, 2025
Feb 16, 2015
Jan 17, 2024
Mar 18, 2025
Jul 30, 2024
Jan 28, 2025
Jan 17, 2020
Mar 14, 2025
Nov 19, 2024
Mar 14, 2025

Repository files navigation

Frontend

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

Formats

Format Schema/Document Type Live example(s)
AB testing hardcoded https://www.gov.uk/help/ab-testing
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
Case studies case_study https://www.gov.uk/government/case-studies/aiding-capability-decision-making-for-the-royal-navy
Cookies hardcoded https://www.gov.uk/help/cookies
Fatality notice fatality_notice https://www.gov.uk/government/fatalities/corporal-lee-churcher-dies-in-iraq
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
Guidance detailed_guide https://www.gov.uk/guidance/travel-to-england-from-another-country-during-coronavirus-covid-19
Help index hardcoded https://www.gov.uk/help
Help help_page https://www.gov.uk/help/browsers
Homepage homepage https://www.gov.uk/
Get involved get_involved https://www.gov.uk/government/get-involved
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 http://www.gov.uk/school-term-holiday-dates
http://www.gov.uk/apply-council-tax-reduction
News Article news_article https://www.gov.uk/government/news/the-personal-independence-payment-amendment-regulations-2017-statement-by-paul-gray
Place place http://www.gov.uk/register-offices
http://www.gov.uk/register-offices
Roadmap hardcoded https://www.gov.uk/roadmap
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
Take part take_part https://www.gov.uk/government/get-involved/take-part/improve-your-social-housing
Transaction start page transaction https://www.gov.uk/register-to-vote
https://www.gov.uk/vehicle-tax
https://www.gov.uk/find-a-job

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, first run 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 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