mirror of
https://github.com/alphagov/finder-frontend.git
synced 2026-09-28 17:59:53 +00:00
Official upstream source mirror. Do not make UH changes here.
- Ruby 75.2%
- JavaScript 14.3%
- HTML 6.2%
- SCSS 2.4%
- Gherkin 1.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github | ||
| .yarn/releases | ||
| app | ||
| bin | ||
| config | ||
| db | ||
| docs | ||
| features | ||
| lib | ||
| log | ||
| public | ||
| script | ||
| spec | ||
| vendor/assets | ||
| .dockerignore | ||
| .erb_lint.yml | ||
| .gitignore | ||
| .govuk_dependabot_merger.yml | ||
| .rspec | ||
| .rubocop.yml | ||
| .ruby-version | ||
| .yarnrc.yml | ||
| app.json | ||
| config.ru | ||
| Dockerfile | ||
| Gemfile | ||
| Gemfile.lock | ||
| LICENCE | ||
| package.json | ||
| procfile.dev | ||
| Rakefile | ||
| README.md | ||
| startup.sh | ||
| yarn.lock | ||
Finder Frontend
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.
Live examples
- 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
Nomenclature
- Finder: Page containing a list of filterable documents and filters.
- Facets: Metadata associated with documents. See
app/models/*_facet.rbfor examples. - Filters: Searchable/filterable metadata for example
case_state={open|closed}for a CMA case. - Parser: Transforms API responses into model objects.
Technical documentation
This is a Ruby on Rails app, and should follow our Rails app conventions.
Running the app locally
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.
govuk-docker-upbuilds finder-frontend and all its dependent applicationsgovuk-docker-up app-livebuilds finder-frontend pointing at the production content store and search stackgovuk-docker-up app-integrationbuilds finder-frontend pointing at the integration content store and search stackgovuk-docker-up app-live-local-searchbuilds finder-frontend pointing at the live content store and a local version of search api.
Running the test suite
If you are using GOV.UK Docker, remember to prefix the commands that follow with govuk-docker-run. 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
Debugging support
See Debugging
Further documentation
See the docs/ directory for manuals and instructions.