Home - ploiu/mock-server GitHub Wiki
Welcome to the mock-server wiki!
This wiki serves as a simple guide for using the mock server from both the command line and the GUI.
What This Application Does
server that allows you to mock out endpoints to aid in development work. It includes a request/response log, variable path/query matching, portable config, a GUI, and the ability to enable/disable mocks.
What this Application Does Not Do
This application does not sniff network traffic. You need to be able to point your requests from your application to the mock server.
Getting Started
Doing development work?: deno task dev
Want to try it out?: deno task run
Want to use it from anywhere?: deno task install
Want to use it from anywhere while ignoring ssl errors?: deno task install-unsafe
[!Warning] install-unsafe can be useful behind a corporate proxy, but is DANGEROUS. Use at your own risk.
Once you run deno task install
, you can run this application from anywhere using the command line. I recommend running it within a dedicated folder, as config files + gui files for the browser side get generated in your current pwd when run
List of available options when running:
flag | description |
---|---|
--help , -h |
Show help message |
--config , -c |
specify config file path, defaults to ./config.json (see config format) |
--port , -p |
specify which port the server runs on, defaults to 8000 |
--load-ui , -l |
(defaults true) whether to allow displaying the UI in the browser via the route /mock-server-ui |