Renders search on GOV.UK:
- Site search is available from the header of every page.
- Finder pages provide facetted searching over a collection of documents.
- Most of these pages support subscribing to email alerts.
- gov.uk/aaib-reports
- gov.uk/drug-device-alerts
- gov.uk/government/case-studies
- gov.uk/government/people
- gov.uk/world/organisations
- gov.uk/international-development-funding
- Finder: Page containing a list of filterable documents and filters.
- Facets: Metadata associated with documents. See
app/models/*_facet.rb
for examples. - Filters: Searchable/filterable metadata for example
case_state={open|closed}
for a CMA case. - Parser: Transforms API responses into model objects.
This is a Ruby on Rails app, and should follow our Rails app conventions.
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.
# run all the tests
bundle exec rake
# run only feature tests
bundle exec cucumber
# run only JS tests
bundle exec rake jasmine:ci
See the docs/
directory for manuals and instructions.