Mokker is a simple express RESTful API mock server, which also provides few methods to make your data emulating easier.
npm install --save-dev mokker
yarn add --dev mokker
- body-parser
- express
- morgan
- query-string
- react-dev-utils
// server.js
const mokker = require('mokker');
const routes = [{
method: 'get',
url: '/api',
json: { is: 'done' }
}];
mokker.start({ routes });
// done 😍
$ node server.js
This project is licensed under MIT License. See the license file for more details.