https://github.com/cmccarthyirl/wiremock-spring-boot
wiremock-spring-boot
https://github.com/cmccarthyirl/wiremock-spring-boot
executable jar java spring-boot wiremock
Last synced: 7 months ago
JSON representation
wiremock-spring-boot
- Host: GitHub
- URL: https://github.com/cmccarthyirl/wiremock-spring-boot
- Owner: cmccarthyIrl
- License: mit
- Created: 2023-03-07T03:36:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-27T10:10:39.000Z (about 1 year ago)
- Last Synced: 2025-03-12T08:44:45.373Z (10 months ago)
- Topics: executable, jar, java, spring-boot, wiremock
- Language: Java
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# Wiremock
This project provides an implementation of a WireMock server that is automatically configured to generate Pacts, using Spring Boot to automatically configure WireMock.
# Installation
To use this project, follow these steps:
1. Clone the repository: `git clone https://github.com/cmccarthyIrl/wiremock-spring-boot.git`
2. Open the project in your preferred IDE.
3. Build the project: `./gradlew build` or `mvnw package` from the root directory
4. Run the WireMock server by executing the following command:
```bash
java -jar wiremock-0.0.1-SNAPSHOT.jar
```
This will start the server on port 80. Once the server is running, you can access the WireMock UI by navigating to http://localhost:80
# Configuration
This project uses Spring Boot to automatically configure WireMock. The following configuration options are available:
| Property Name | Description | Default Value |
|:-------------------------------|:---------------------------------------------------|:---------------------|
| wiremock.server.port | The port that the WireMock server should listen on | 80 |
| wiremock.server.files.stubs | The classpath for Wiremock files | classpath*:/__files |
| wiremock.server.files.mappings | The classpath for Wiremock stubs | classpath*:/mappings |
# License
This project is licensed under the MIT License - see the LICENSE file for details.