Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.4 KB

README.md

File metadata and controls

42 lines (25 loc) · 1.4 KB

Mok GitHub go.mod Go version codecov Edit on VSCode online

Mock APIs as files with a NextJS routing directory style

Getting started

Download the executable from the latest release.

Run the following under a folder with some .json files:

mok

Then you can go to http://localhost:8080 and check for yourself

You can specify the address and the port to listen:

mok --listen 0.0.0.0 --port 80

Or use a different folder than the current:

mok path/to/my/json/files

Random responses

To be able to randomise the content of our JSON files we can use all functions from gofakeit and passed request data.

Check example folder for more info.

Partners

skore logo

License

This package is open-sourced software licensed under the MIT license.