Skip to content

alphagov/frontend

Frontend

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

Formats

FormatSchema/Document TypeLive example(s)
AB testinghardcodedhttps://www.gov.uk/help/ab-testing
Answeranswerhttps://www.gov.uk/national-minimum-wage-rates
Asset placeholderhardcodedhttps://assets.publishing.service.gov.uk/government/placeholder
Calendarscalendarhttps://www.gov.uk/bank-holidays
https://www.gov.uk/when-do-the-clocks-change
Call for evidenceschema: call_for_evidencehttps://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 studiescase_studyhttps://www.gov.uk/government/case-studies/aiding-capability-decision-making-for-the-royal-navy
Consultationconsultationhttps://www.gov.uk/government/consultations/soft-drinks-industry-levy
Cookieshardcodedhttps://www.gov.uk/help/cookies
Corporate information pagescorporate_information_pagehttps://www.gov.uk/government/organisations/forensic-science-regulator/about
https://www.gov.uk/government/organisations/forensic-science-regulator/about/accessible-documents-policy
Detailed Guidedetailed_guidehttps://www.gov.uk/guidance/selling-second-hand-vehicles-using-a-vat-margin-scheme
Document collectiondocument_collectionhttps://www.gov.uk/government/collections/statutory-guidance-schools
Fatality noticefatality_noticehttps://www.gov.uk/government/fatalities/corporal-lee-churcher-dies-in-iraq
Field of operationfield_of_operationhttps://www.gov.uk/government/fields-of-operation/united-kingdom
Fields of operationfields_of_operationhttps://www.gov.uk/government/fields-of-operation
Find electoral officehardcodedhttps://www.gov.uk/contact-electoral-registration-office
Find local councilhardcodedhttps://www.gov.uk/find-local-council
Foreign travel advice indextravel_advice_indexhttps://www.gov.uk/foreign-travel-advice
Foreign travel advicetravel_advicehttps://www.gov.uk/foreign-travel-advice/azerbaijan
Guideguidehttps://www.gov.uk/log-in-register-hmrc-online-services
Help indexhardcodedhttps://www.gov.uk/help
Helphelp_pagehttps://www.gov.uk/help/browsers
Historyhistoryhttps://www.gov.uk/government/history/10-downing-street
Homepagehomepagehttps://www.gov.uk/
How Government Workshow_government_workshttps://www.gov.uk/government/how-government-works
HTML Publicationhtml_publicationhttps://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
Get involvedget_involvedhttps://www.gov.uk/government/get-involved
Gonegonehttps://www.gov.uk/government/collections/greenhouse-gas-conversion-factors-for-company-reporting
Licence finderschema: specialist_documenthttps://www.gov.uk/find-licences/premises-licence
document_type: licence_transactionhttps://www.gov.uk/find-licences/zoo-licence
Local transactionlocal_transactionhttp://www.gov.uk/school-term-holiday-dates
http://www.gov.uk/apply-council-tax-reduction
News Articlenews_articlehttps://www.gov.uk/government/news/the-personal-independence-payment-amendment-regulations-2017-statement-by-paul-gray
Placeplacehttp://www.gov.uk/register-offices
http://www.gov.uk/register-offices
Publicationpublicationhttps://www.gov.uk/government/publications/budget-2016-documents
Roadmaphardcodedhttps://www.gov.uk/roadmap
Service Manual guideservice_manual_guidehttps://www.gov.uk/service-manual/agile-delivery/how-the-discovery-phase-works
Service Manual homepageservice_manual_homepagehttps://www.gov.uk/service-manual
Service Manual service standard pageservice_manual_service_standardhttps://www.gov.uk/service-manual/service-standard
Service Manual topicservice_manual_topichttps://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 pageservice_toolkit_pagehttps://www.gov.uk/service-toolkit
Simple smart answersimple_smart_answerhttps://www.gov.uk/sold-bought-vehicle
https://www.gov.uk/contact-the-dvla
Specialist Documentschema: specialist_documenthttps://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
Speechspeechhttps://www.gov.uk/government/speeches/motorcycle-testing
Statistical Data Setstatistical_data_sethttps://www.gov.uk/government/statistical-data-sets/local-government-pension-scheme-funds-summary-data-2011-to-2012
Topical Event About Pagetopical_event_about_pagehttps://www.gov.uk/government/topical-events/western-balkans-summit-london-2018/about
Transaction start pagetransactionhttps://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

About

Serves the homepage, transactions and some index pages on GOV.UK

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 218