This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
wiremock with all
npm packages installed. Try it out:
wiremock lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
This is Wiremock Standalone wrapped inside an NPM package. It relies only on dependencies found in NPM. It is created with JDeploy and will use the existing JRE if found, or download one with node-jre.
It can be used as a command line tool like this:
This example is in the repo in
It starts a server with ExpressJS and delegates to a frontend and an API. When running
npm run serve it will start this setup:
http://localhost:8080/ | | |---[/api/*]-> http://localhost:8081/ | \ \-[*]------> http://localhost:8082/
http://localhost:8080/api/exampleWill serve the API with
http://localhost:8080/whateverWill serve the frontend. This can be a Vue app or whatever.