Skip to content

☕️ Mock APIs as files with a NextJS routing directory style

License

Notifications You must be signed in to change notification settings

open-southeners/mok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.