- Fork this github repository into your account (You will find a "fork" icon on the top right corner)
- Clone the forked repository that exists in your github account into your local machine
- Ruby 2.3+ (It is already installed if you are using Mac OS X).
Check your ruby version with ruby --version
If you need to install ruby follow the instructions on rvm.io
Install bundler 1.17.2 if you don't have it already installed
sudo gem install bundler -v 1.17.2
Verify that you have the right version by running bundler --version
If you have more recent versions of bundler, unistall them with gem uninstall bundler
until the most up to date and default version of bundler is 1.17.2
- Navigate to the
pact-workshop-provider
directory and executebundle install
- Execute
rspec
Get familiarised with the code
There are two microservices in this system. A consumer
and a provider
(this repository).
The "provider" is a PaymentService that validates if a credit card number is valid in the context of that system.
The "consumer" only makes requests to PaymentService to verify payment methods.
Navigate to the Consumer repository and follow the instructions in the Consumer's readme file