Skip to content

mock server with cli tool,use javascript mock files,generate mock api automatically according to directory structure

Notifications You must be signed in to change notification settings

lyhper/local-mock-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

local-mock-server

A simple local mock server with cli tool

About

You can use it with Node.js API or CLI tool.

Install

$ npm i --save-dev local-mock-server

Example

CLI

serve mock files in 'mockdir' directory

mock -d mockdir

Node.js API

const mock = require('local-mock-serever')
mock('mockdir') // '/mock' directory by default

About

mock server with cli tool,use javascript mock files,generate mock api automatically according to directory structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published