Skip to content

alphagov/pay-product-page

Repository files navigation

Pay Product Page

Raising a PR

  • Before raising a PR, you need to run prettier (npm run format), then add all files to your commit
  • PR builds needs to be approved in percy (https://percy.io) if they contain any changes under the src dir (performance data update does not require percy approval)

Running Locally

  • bundle install to install middleman and its dependencies
  • npm install to install the frontend dependencies
  • bundle exec middleman server - to start middleman's built in server
  • open http://localhost:4567 - to open the example in your browser

Building a Static Copy of the Site

  • bundle install
  • npm install
  • bundle exec middleman build

Check the build directory for the output.

Components

Look at the CSS for the individual components for usage examples and notes.

Releasing a Static Copy of the Site

Releases are created when changes are merged into the main branch.

The product pages are then deployed to GitHub Pages automatically via GitHub Actions. Page contents are cached for roughly 30 minutes so your changes might not be viewable immediately.

View the product pages

Licence

MIT Licence

Vulnerability Disclosure

GOV.UK Pay aims to stay secure for everyone. If you are a security researcher and have discovered a security vulnerability in this code, we appreciate your help in disclosing it to us in a responsible manner. Please refer to our vulnerability disclosure policy and our security.txt file for details.