Need help with node-mock-server?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

smollweide
225 Stars 69 Forks MIT License 459 Commits 14 Opened issues

Description

File based Node REST API mock server

Services available

!
?

Need anything else?

Contributors list

# 136,809
Storybo...
HTML
CSS
React
329 commits
# 201,575
C
faceboo...
ruby-on...
CSS
7 commits
# 59,972
TeX
Groovy
Spring
swagger
6 commits
# 31,663
JavaScr...
TypeScr...
React
Redux
6 commits
# 1,520
GraphQL
MongoDB
render-...
formik
2 commits
# 174,221
React
C++
directo...
cli-too...
2 commits
# 537,549
magento...
PHP
CSS
dto
1 commit
# 261,372
HTML
CSS
dto
swagger
1 commit
# 68,593
golang
dto
React
webpack...
1 commit
# 642,100
HTML
CSS
dto
swagger
1 commit
# 95,281
Swift
Angular
PHP
respons...
1 commit
# 487,290
C#
CSS
dto
swagger
1 commit
# 261,562
CSS
reactjs
HTML
dto
1 commit

node-mock-server

File based Node REST API mock server

Build status npm npm Codestyle

node-mock-server-ui.png

Getting Started

This application requires Node

6
or higher. For Node
<6
please use
[email protected]
For Node
<4
please use
[email protected]
1. Install npm package:
$ npm install node-mock-server --save-dev
2. Start init process:
$ node node_modules/node-mock-server/init

Options

node-mock-server options

Usage examples

node-mock-server usage examples

Features

CLI

$ node  --help

Usage $ node [--version] [--help] []

Options $ start mock server $ --version print node-mock-server version $ --help print help $ swagger-import run a swagger import $ validate run a validation for all mock data $ collections print all available collections $ collection activate collection

Examples $ node demo/index.js --version $ node demo/index.js collections

Demo

git clone https://github.com/smollweide/node-mock-server.git
cd node-mock-server
npm install
node demo

License

MIT License

Changelog

Please see the Releases

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.