Parliament.uk-utilities is a Rails application designed to hold the utility parts of the new parliament.uk website made by the Parliamentary Digital Service.
Parliament.uk-utilities requires the following:
Clone the repository:
git clone https://github.com/ukparliament/Parliament.uk-utilities.git
cd Parliament.uk-utilities
The Parliament.uk-utilities application holds the routes, controllers and views that make up all the utility elements of the new parliament.uk website. Utilities include the areas of the website which are not individual items or lists but are standalone endpoints eg. search, postcodes, resources.
To run the application locally, run:
bundle install
bundle exec rails s
We use RSpec as our testing framework and tests can be run using:
bundle exec rspec
If you wish to submit a bug fix or feature, you can create a pull request and it will be merged pending a code review.
- Fork the repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Ensure your changes are tested using Rspec
- Create a new Pull Request
Parliament.uk-utilities is available as open source under the terms of the Open Parliament Licence.