Skip to content

Serves GOV.UK navigation pages, browse, topic, step-by-steps & services and information pages.

License

Notifications You must be signed in to change notification settings

alphagov/collections

Folders and files

NameName
Last commit message
Last commit date
Feb 5, 2025
Mar 6, 2023
Feb 24, 2025
Sep 25, 2024
Feb 26, 2025
Oct 10, 2023
Dec 20, 2024
Feb 5, 2025
Oct 13, 2016
Sep 25, 2024
Mar 10, 2020
Feb 26, 2025
Apr 3, 2014
Jan 31, 2024
Feb 5, 2025
Jan 16, 2024
Jun 3, 2024
Feb 9, 2021
Nov 9, 2021
Dec 9, 2024
May 11, 2023
Mar 10, 2023
Dec 9, 2024
Feb 5, 2025
Mar 11, 2025
Dec 2, 2022
Jan 16, 2024
Feb 14, 2024
Jul 12, 2022
Jul 29, 2024
Mar 16, 2021
Mar 3, 2025
Jan 16, 2024
Mar 3, 2025

Repository files navigation

Collections

Collections serves the GOV.UK navigation pages and organisation pages. Search API is used to make the pages dynamic e.g. the latest changes for Topics, Organisations and Mainstream browse pages.

At time of writing, it also serves the priority campaign pages. See the Campaign pages manual for more details.

Live examples

Nomenclature

Topics

  • Curated list: a group of content tagged to a subtopic that has been curated into a named list.
  • Topic: a named group of sub-topics. (A deprecated name for this is "specialist sector".)
  • Sub-topic: a group of content within a topic. (A deprecated name for this is "specialist sub-sector".)

Technical documentation

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.

Running the test suite

bundle exec rake

To test a single file:

bundle exec rails test test/unit/application_helper_test.rb

To run JavaScript tests (only):

bundle exec rake jasmine

Pact tests

Collections Organisations API has a pact with GDS API Adapters.

See the guidance on Pact testing for how to run and modify the tests.

Further documentation

Licence

MIT License