https://github.com/ondiekelijah/contract-testing-webapp
This is an example microservice that showcases the use of contract testing to ensure that a service provider and consumer agree on the structure and behavior of their interactions.
https://github.com/ondiekelijah/contract-testing-webapp
axios express pact
Last synced: about 1 year ago
JSON representation
This is an example microservice that showcases the use of contract testing to ensure that a service provider and consumer agree on the structure and behavior of their interactions.
- Host: GitHub
- URL: https://github.com/ondiekelijah/contract-testing-webapp
- Owner: ondiekelijah
- Created: 2023-03-27T20:05:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T06:18:48.000Z (over 2 years ago)
- Last Synced: 2025-01-24T06:09:49.760Z (over 1 year ago)
- Topics: axios, express, pact
- Language: JavaScript
- Homepage:
- Size: 533 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Contract-Testing
#### 1. Clone repo and install npm packages
```bash
git clone https://github.com/ondiekelijah/sample-microservice.git
```
#### 2. Install required packages
##### Consumer
```bash
cd users_frontend
npm install
```
##### Provider
```bash
cd users_api
npm install
```
#### 3. Run tests
##### Consumer
```bash
cd users_frontend
npm test
```
##### Provider
```bash
cd users_api
npm test
```