Comparing version 2.23.0 to 2.24.0
@@ -68,3 +68,3 @@ #! /usr/bin/env node | ||
var path = require('path'); | ||
var jarName = "wiremock-jre8-standalone-2.23.0.jar"; | ||
var jarName = "wiremock-jre8-standalone-2.24.0.jar"; | ||
var mainClass = "{{MAIN_CLASS}}"; | ||
@@ -71,0 +71,0 @@ var classPath = "{{CLASSPATH}}"; |
@@ -14,5 +14,5 @@ { | ||
"preferGlobal": true, | ||
"version": "2.23.0", | ||
"version": "2.24.0", | ||
"jdeploy": { | ||
"jar": "wiremock-jre8-standalone-2.23.0.jar" | ||
"jar": "wiremock-jre8-standalone-2.24.0.jar" | ||
}, | ||
@@ -19,0 +19,0 @@ "dependencies": { |
@@ -7,5 +7,9 @@ # Wiremock NPM | ||
Run it with: | ||
It only relies on dependencies found in an NPM package repository. It is created with [JDeploy](https://github.com/shannah/jdeploy) and will download and use a JRE, [node-jre](https://www.npmjs.com/package/node-jre), if one is not available. | ||
```shell | ||
## Usage | ||
It is used as a command line tool like this: | ||
```bash | ||
npx wiremock | ||
@@ -15,1 +19,20 @@ ``` | ||
See: http://wiremock.org/docs/running-standalone/ | ||
## Example - Mock API in frontend app | ||
This example is in the repo in [`example-mock-api-with-express`](/example-mock-api-with-express). | ||
It starts a server with [ExpressJS](https://www.npmjs.com/package/expressjs) and delegates to a frontend and an API. Like this: | ||
When running `npm run serve` it will start this setup: | ||
``` | ||
http://localhost:8080/ -------[/api/*]------------> http://localhost:8081/ | ||
\ | ||
\ | ||
\-----[*]---------------> http://localhost:8082/ | ||
``` | ||
So that: | ||
* http://localhost:8080/api/example Will serve the API with `npx wiremock`. | ||
* http://localhost:8080/whatever Will serve the frontend. This can be a Vue app or whatever. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13776139
36