Skip to content

Commit

Permalink
docs: clarify how to run consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Apr 20, 2022
1 parent d4777a5 commit 3fb6acb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ The project uses a Makefile to simulate a very simple build pipeline with two st

See the [Pactflow CI/CD Workshop](https://github.com/pactflow/ci-cd-workshop).

## Running the application

Start up the [provider](https://github.com/pactflow/example-provider/) (or another [compatible](https://docs.pactflow.io/docs/examples) provider) API by running `npm run start`.

Open a separate terminal for the consumer.

Before starting the consumer, create a `.env` file in the root of the project and set the URL to point to your running provider:

```bash
REACT_APP_API_BASE_URL=http://localhost:8080
```

Then run:

```bash
npm run start
```

### Pre-requisites

**Software**:
Expand Down

0 comments on commit 3fb6acb

Please sign in to comment.