2.0.1 • Published 7 years ago

hot-mock-server v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

hot-mock-server

Build Status codecov

A HTTP Server for Mock Data.

Features

  • Hot reload when change data files
  • Support request with JSON format body
  • Response with static data
  • Manual handle request and response
  • CORS (allow all CORS request)

Dependencies

Preparations

  • node >= 6.0.0
  • npm >= 3.8.6

Usage

  • npm install -g hot-mock-server (maybe need root authorization)
  • hmserver -d <data dir path> -p <port>

Attentions

  • Data directory sample: data-sample
  • Conmmand sample: hmserver -d "./data-sample" -p 3000

Licence

MIT