Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 950 Bytes

readme.md

File metadata and controls

48 lines (34 loc) · 950 Bytes

Mokker

npm version

Mokker is a simple express RESTful API mock server, which also provides few methods to make your data emulating easier.

Installation

npm install --save-dev mokker
yarn add --dev mokker

Dependencies

  • body-parser
  • express
  • morgan
  • query-string
  • react-dev-utils

Usage

// server.js
const mokker = require('mokker');

const routes = [{
    method: 'get',
    url: '/api',
    json: { is: 'done' }
}];

mokker.start({ routes });
// done 😍

$ node server.js

Docs

License

This project is licensed under MIT License. See the license file for more details.