Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuysoft/Mock
A simulation data generator
https://github.com/nuysoft/Mock
Last synced: about 2 months ago
JSON representation
A simulation data generator
- Host: GitHub
- URL: https://github.com/nuysoft/Mock
- Owner: nuysoft
- License: other
- Created: 2013-04-26T08:06:57.000Z (over 11 years ago)
- Default Branch: refactoring
- Last Pushed: 2024-03-15T01:53:57.000Z (9 months ago)
- Last Synced: 2024-04-14T14:21:32.887Z (8 months ago)
- Language: JavaScript
- Homepage: http://mockjs.com
- Size: 5.16 MB
- Stars: 19,355
- Watchers: 422
- Forks: 2,660
- Open Issues: 338
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-GitHub-Repo - Mock.js - 模拟数据生成器,帮助前端开发者独立于后端进行开发,帮助编写单元测试。[<img src="https://tva1.sinaimg.cn/large/008i3skNly1gxlhtmg11mj305k05k746.jpg" alt="微信" width="18px" height="18px" />](https://mp.weixin.qq.com/s?__biz=MzUxNjg4NDEzNA%3D%3D&chksm=f9a22984ced5a092b79362bb18932e8895ed01dba198513522bf50bec33c1458dd29805bd4da&idx=1&mid=2247498317&scene=21&sn=8d67a6067e8a30d2bc6548c3756621ad#wechat_redirect) (大厂开源 / 阿里开源)
- awesome-nodejs - Mock.js - A simulation data generator. ![](https://img.shields.io/github/stars/nuysoft/Mock.svg?style=social&label=Star) (Repository / Testing)
- awesome-npm - Mock - 浏览器和Node均可用,支持自定义schema和随机数据 (1. 后端开发 / 1.1 HTTP)
- awesome - nuysoft / Mock
- awesome-nodejs - mockjs - 浏览器和 Node 均可用,支持自定义 schema 和随机数据 (Uncategorized / Uncategorized)
- awesome - nuysoft/Mock - A simulation data generator (JavaScript)
- awesome - nuysoft/Mock - A simulation data generator (JavaScript)
README
# Mock.js
[![Build Status](https://travis-ci.org/nuysoft/Mock.svg?branch=refactoring)](https://travis-ci.org/nuysoft/Mock)
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:
## Features
* Generate simulated data according to the data template
* Provide request/response mocking for ajax requests
* ~~Generate simulated data according to HTML-based templates~~This library is loosely inspired by Elijah Manor's post [Mocking
Introduction](http://www.elijahmanor.com/2013/04/angry-birds-of-javascript-green-bird.html), [mennovanslooten/mockJSON](https://github.com/mennovanslooten/mockJSON), [appendto/jquery-mockjax](https://github.com/appendto/jquery-mockjax) and [victorquinn/chancejs](https://github.com/victorquinn/chancejs/).## Questions?
If you have any questions, please feel free to ask through [New Issue](https://github.com/nuysoft/Mock/issues/new).## Reporting an Issue
Make sure the problem you're addressing is reproducible. Use or 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](./LICENSE).