Getting Started
Install
npm install mockyeah --save-dev
or
yarn add -D mockyeah
Introductory tutorial
Create an example project and initialized with NPM
$ mkdir example-app && cd example-app $ npm init # all defaults will be fine
Install
mockyeah
$ npm install mockyeah --save-dev
or
$ yarn add -D mockyeah
Create script file and add the source below
$ touch index.js
const mockyeah = require('mockyeah'); mockyeah.get('/hello-world', { text: 'Hello World' });
Run the script file with Node
$ node index.js
Profit. You should see "Hello World" returned from your mock server.