Skip to main content

Application: govuk-pact-broker

A thin layer around https://github.com/bethesque/pact_broker for running on GOV.UK infrastructure

Ownership
#govuk-platform-reliability-team
Hosting
GOV.UK PaaS
Category
Utilities

Imported documents

README

This repo is a thin wrapper around the Pact Broker Gem that allows Pact Broker to be run on unicorn server on the GOV.UK PAAS.

It is used by projects such as Publishing API, GDS API Adapters and Content Store for contract testing.

Getting started

Install dependencies

$ bundle install

Create a PostgreSQL database

$ psql postgres
> create database pact_broker;
> CREATE USER pact_broker WITH PASSWORD 'pact_broker';
> GRANT ALL PRIVILEGES ON DATABASE pact_broker to pact_broker;

Set up environment variables

$ export AUTH_USERNAME=username
$ export AUTH_PASSWORD=password
$ export DATABASE_URL=postgresql://pact_broker@localhost/pact_broker

Run the app

$ bundle exec unicorn

Further documentation