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 fineInstall
mockyeah$ npm install mockyeah --save-devor
$ yarn add -D mockyeahCreate script file and add the source below
$ touch index.jsconst mockyeah = require('mockyeah'); mockyeah.get('/hello-world', { text: 'Hello World' });Run the script file with Node
$ node index.jsProfit. You should see "Hello World" returned from your mock server.