Serves GOV.UK navigation pages, browse, topic, step-by-steps & services and information pages.
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.
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.
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
Collections Organisations API has a pact with GDS API Adapters.
See the guidance on Pact testing for how to run and modify the tests.