Mock README

The project's README from github.com/nuysoft/Mock. As one markdown file: README.md.

Mock.js

Build Status

Mock.js is a simulation data generator to help the front-end to develop and prototype separate from the back-end progress and reduce some monotony particularly while writing automated tests.

The official site: http://mockjs.com

Features

This library is loosely inspired by Elijah Manor's post Mocking Introduction, mennovanslooten/mockJSON, appendto/jquery-mockjax and victorquinn/chancejs.

Questions?

If you have any questions, please feel free to ask through New Issue.

Reporting an Issue

Make sure the problem you're addressing is reproducible. Use http://jsbin.com/ or http://jsfiddle.net/ to provide a test page. Indicate what browsers the issue can be reproduced in. What version of Mock.js is the issue reproducible in. Is it reproducible after updating to the latest version?

License

Mock.js is available under the terms of the MIT License.

Mock (nuysoft/Mock)

Searching Database…

19.6K ·GitHub
What is this?Mock.js is a JavaScript library that generates simulated data and mocks ajax requests, so front-end development and automated tests can run without waiting on a real back-end.
Is this a library I wire into my front-end code, or a standalone mock server?It's a library you include in your front-end code rather than a separate server — it produces data from templates and mocks ajax request/response handling from inside your app.
How do I add it to a project, and does it pull in many dependencies?The README has no install section; as a JavaScript library you add it via npm, and it brings just one runtime dependency — commander.
Is everything in the feature list fully supported?No — HTML-based template generation is struck through in the README, so only data templates and ajax mocking should be considered supported.
Does it run in the browser or on the server?It targets browser-side front-end work — the bug-report checklist asks which browsers an issue reproduces in — and it also serves automated tests.
What earlier projects inspired it?It was loosely modeled on Elijah Manor's 'Mocking Introduction' post and on the mockJSON, jquery-mockjax and chancejs libraries.
How mature is the project?It has been on GitHub since April 2013 with about 19.6k stars and is not archived; the README itself stays minimal and routes questions to GitHub issues.
Creator
nuysoft
Size
5.3 MB
Stars
19.6K
Age
13y
Commits · 90 Days