A persistent service that generates mock data quickly and provids visualization view.
A persistent service that generates mock data quickly and provids visualization view.
Thanks to Souche Inc. which provides the server to hold an online service.
If you're unable to deploy an Easy Mock service by yourself, the online service is recommended.
Easy Mock is a persistent service that generates mock data quickly and provids visualization view.
Before starting, we assume that you're already have installed Node.js (v8.x,
v10.x is not supported) & MongoDB (>= v3.4) & Redis(>= v4.0).
$ git clone https://github.com/easy-mock/easy-mock.git
$ cd easy-mock && npm installFind config/default.json or create config/local.json to overwrite some configuration.
Easy Mock will load different configuration files according to your environment. Reference to node-config to get more information because Easy Mock uses node-config as its configuration module.
…Note:
publicPath is '/dist/'. You can replace it to your
own CDN if necessary.fe, you should run build command
to adapt that changes.Background:
Easy Mock supports two background service, Unsplash and Bing.
If you leave unsplashClientId blank, the background will be provided by Bing.
$ npm run dev
# Visit http://127.0.0.1:7300# Build front-end assets
$ npm run build
# Run Easy Mock as production environment (You should run `build` first)
$ npm run start
# Run unit test
$ npm run test
# Test lint
$ npm run lintPlease configure your configuration files before this step.
We're recommending you to use PM2 as your daemon process.
$ [sudo] npm install pm2 -gYou should run
buildbefore this step.
$ NODE_ENV=production pm2 start app.jsRefer to Release and you'll get all the releases and theirs changelog.
Easy Mock is now maintained by Mobi-Architecture team of Souche Inc. If you have any question about this project, you're welcome to post Issues or make some Pull Requests. Before contributing, we think you'd better read the contributing guide.
You may make some real-time feedback via QQ group.
QQ is the most popular IM software in China and you can get it downloaded via http://en.qq.com/.
The QQ group number is 595325417, and here's the QR code of the group:
If you deployed Easy Mock in your own server, please tell us
|
chuangker |
XadillaX |
ostoc |
xinyu198736 |
Potential Security Issue
项目废弃了 ?
哪个版本的mongodb可以兼容啊
post方法如何加入请求参数
docker安裝各种报错
[nodemon] app crashed - waiting for file changes before starting
技术要求太高了。入门即放弃系列
搭建easymock后,启动预览接口时,报错:Uncaught ReferenceError: hljs is not defined
使用mock.js中的increment存在问题
Easymock 支持多台服务器配置同一个接口吗?