{"id":13527299,"url":"https://github.com/easy-mock/easy-mock","last_synced_at":"2025-05-14T04:00:23.179Z","repository":{"id":39115586,"uuid":"101556009","full_name":"easy-mock/easy-mock","owner":"easy-mock","description":"A persistent service that generates mock data quickly and provids visualization view.","archived":false,"fork":false,"pushed_at":"2023-01-09T09:27:21.000Z","size":3398,"stargazers_count":9028,"open_issues_count":185,"forks_count":1347,"subscribers_count":224,"default_branch":"dev","last_synced_at":"2025-04-10T22:34:55.290Z","etag":null,"topics":["data-generator","easy-mock","javascript","mock","swagger","vue"],"latest_commit_sha":null,"homepage":"https://easy-mock.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easy-mock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-27T13:59:29.000Z","updated_at":"2025-04-09T06:41:00.000Z","dependencies_parsed_at":"2023-02-08T09:46:05.298Z","dependency_job_id":null,"html_url":"https://github.com/easy-mock/easy-mock","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-mock%2Feasy-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-mock%2Feasy-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-mock%2Feasy-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-mock%2Feasy-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easy-mock","download_url":"https://codeload.github.com/easy-mock/easy-mock/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254067059,"owners_count":22009069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-generator","easy-mock","javascript","mock","swagger","vue"],"created_at":"2024-08-01T06:01:45.253Z","updated_at":"2025-05-14T04:00:23.109Z","avatar_url":"https://github.com/easy-mock.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Repository","目录","GIT 仓库","开发运维工具"],"sub_categories":["HTTP","测试/工具/Mock"],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://easy-mock.com\" target=\"_blank\"\u003e\u003cimg width=\"100\"src=\"http://img.souche.com/20170509/png/fff9d8506199c4bf8cc53bad9d849215.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nodejs.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/node-%3E%3D8.9.1-green.svg?style=flat\" alt=\"Node.js Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.mongodb.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/mongo-%3E%3D3.4.1-green.svg?style=flat\" alt=\"MongoDB Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://redis.io\"\u003e\u003cimg src=\"https://img.shields.io/badge/redis-%3E%3D4.0-green.svg?style=flat\" alt=\"Redis Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://circleci.com/gh/easy-mock/easy-mock/tree/dev\"\u003e\u003cimg src=\"https://circleci.com/gh/easy-mock/easy-mock/tree/dev.svg?style=svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://codecov.io/github/easy-mock/easy-mock?branch=dev\"\u003e\u003cimg src=\"https://img.shields.io/codecov/c/github/easy-mock/easy-mock/dev.svg\" alt=\"Coverage Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://standardjs.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg\" alt=\"js-standard-style\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/GPL-3.0\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-GPL--3.0-blue.svg\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://discord.gg/DdhQnaS\"\u003e\u003cimg src=\"https://img.shields.io/badge/chat-on%20discord-7289da.svg\" alt=\"Chat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eThanks to Souche Inc. which provides the server to hold an online service.\u003c/b\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003ca href=\"http://www.souche.com\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Souche Inc.\" src=\"http://img.souche.com/f2e/08aa2b695f6298302f767b2439db4537.png\" width=\"200\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Links\n\n- [简体中文介绍](README.zh-CN.md)\n- [Online Manual](https://easy-mock.com/docs)\n- [Easy Mock CLI](https://github.com/easy-mock/easy-mock-cli) - A command line\n  tool to generate an **api.js** file quickly based on **Easy Mock**.\n\n## Introduction\n\n\u003e If you're unable to deploy an **Easy Mock** service by yourself, the\n\u003e [online service](https://easy-mock.com) is recommended.\n\nEasy Mock is a persistent service that generates mock data quickly and provids\nvisualization view.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://easy-mock.com\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://img.souche.com/f2e/313b36aaa7d0a3af08718c38a2869534.png\" width=\"700px\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Features\n\n- Support API proxying\n- Convenient shortcuts\n- Support Collaborative editing\n- Support team project\n- Support RESTful\n- Support [Swagger](https://swagger.io) | OpenAPI Specification ([1.2](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md) \u0026 [2.0](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md) \u0026 [3.0](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md))\n  - Create project quickly based on Swagger\n  - Support displaying parameters and the return value\n  - Support displaying class model\n- More flexible and extensible in response data\n- Support for custom response configuration (example: status/headers/cookies)\n- Use [Mock.js](http://mockjs.com/) schema\n- Support [restc](https://github.com/ElemeFE/restc) to preview API\n\n## Quick Start\n\n\u003e Before starting, we assume that you're already have installed\n\u003e [Node.js](https://nodejs.org) (**v8.x, ~~v10.x is not supported~~**) \u0026 [MongoDB](https://www.mongodb.com) (**\u003e= v3.4**) \u0026 [Redis](https://redis.io)（**\u003e= v4.0**）.\n\n### Installation\n\n```shell\n$ git clone https://github.com/easy-mock/easy-mock.git\n$ cd easy-mock \u0026\u0026 npm install\n```\n\n### Configuration\n\nFind **config/default.json** or create **config/local.json** to overwrite some\nconfiguration.\n\n\u003e Easy Mock will load different configuration files according to your\n\u003e environment. Reference to [node-config](https://github.com/lorenwest/node-config)\n\u003e to get more information because Easy Mock uses node-config as its\n\u003e configuration module.\n\n```js\n{\n  \"port\": 7300,\n  \"host\": \"0.0.0.0\",\n  \"pageSize\": 30,\n  \"proxy\": false,\n  \"db\": \"mongodb://localhost/easy-mock\",\n  \"unsplashClientId\": \"\",\n  \"redis\": {\n    \"keyPrefix\": \"[Easy Mock]\",\n    \"port\": 6379,\n    \"host\": \"localhost\",\n    \"password\": \"\",\n    \"db\": 0\n  },\n  \"blackList\": {\n    \"projects\": [], // projectId, e.g.\"5a4495e16ef711102113e500\"\n    \"ips\": [] // ip, e.g. \"127.0.0.1\"\n  },\n  \"rateLimit\": { // https://github.com/koajs/ratelimit\n    \"max\": 1000,\n    \"duration\": 1000\n  },\n  \"jwt\": {\n    \"expire\": \"14 days\",\n    \"secret\": \"shared-secret\"\n  },\n  \"upload\": {\n    \"types\": [\".jpg\", \".jpeg\", \".png\", \".gif\", \".json\", \".yml\", \".yaml\"],\n    \"size\": 5242880,\n    \"dir\": \"../public/upload\",\n    \"expire\": {\n      \"types\": [\".json\", \".yml\", \".yaml\"],\n      \"day\": -1\n    }\n  },\n  \"ldap\": {\n    \"server\": \"\", // Set server to enable LDAP login. e.g. \"ldap://localhost:389\" or \"ldaps://localhost:389\"（use SSL）\n    \"bindDN\": \"\", // Username，e.g. \"cn=admin,dc=example,dc=com\"\n    \"password\": \"\",\n    \"filter\": {\n      \"base\": \"\", // Base where we can search for users，e.g. \"dc=example,dc=com\"\n      \"attributeName\": \"\" // e.g. \"mail\" or \"email\" etc.\n    }\n  },\n  \"fe\": {\n    \"copyright\": \"\",\n    \"storageNamespace\": \"easy-mock_\",\n    \"timeout\": 25000,\n    \"publicPath\": \"/dist/\"\n  }\n}\n```\n\n**Note**:\n\n- The default value of `publicPath` is `'/dist/'`. You can replace it to your\n  own CDN if necessary.\n- If you changed some configuration of `fe`, you should run `build` command\n  to adapt that changes.\n\n**Background**:\n\nEasy Mock supports two background service,\n[Unsplash](https://unsplash.com/developers) and [Bing](http://bing.com).\n\nIf you leave `unsplashClientId` blank, the background will be provided by Bing.\n\n### Launch\n\n```sh\n$ npm run dev\n# Visit http://127.0.0.1:7300\n```\n\n## More Commands\n\n```sh\n# Build front-end assets\n$ npm run build\n\n# Run Easy Mock as production environment (You should run `build` first)\n$ npm run start\n\n# Run unit test\n$ npm run test\n\n# Test lint\n$ npm run lint\n```\n\n## Deployment\n\n\u003e Please configure your configuration files before this step.\n\n### PM2\n\nWe're recommending you to use [PM2](https://github.com/Unitech/pm2) as your\ndaemon process.\n\n#### Install PM2 Globally\n\n```sh\n$ [sudo] npm install pm2 -g\n```\n\n#### Launch via PM2\n\n\u003e You should run `build` before this step.\n\n```sh\n$ NODE_ENV=production pm2 start app.js\n```\n\n## Releases\n\nRefer to [Release](https://github.com/easy-mock/easy-mock/releases) and you'll\nget all the releases and theirs changelog.\n\n## Contributing\n\nEasy Mock is now maintained by\n[Mobi-Architecture team of Souche Inc](http://f2e.souche.com/blog/). If you\nhave any question about this project, you're welcome to post\n[Issues](https://github.com/easy-mock/easy-mock/issues/new) or make some\n[Pull Requests](https://github.com/easy-mock/easy-mock/pulls). Before\ncontributing, we think you'd better read the\n[contributing guide](https://github.com/easy-mock/easy-mock/blob/master/.github/CONTRIBUTING.md).\n\n## Real-Time Feedback\n\nYou may make some real-time feedback via [QQ group](http://en.qq.com/).\n\n\u003e QQ is the most popular IM software in China and you can get it downloaded via\n\u003e http://en.qq.com/.\n\nThe QQ group number is **595325417**, and here's the QR code of the group:\n\n\u003cimg src=\"http://img.souche.com/f2e/4cc362927ef7d1ba46de59097330955a.png\" width=\"260px\"\u003e\n\n## Who Deployed Easy Mock\n\nIf you deployed Easy Mock in your own server, please [tell us](https://github.com/easy-mock/easy-mock/issues/47)\n\n* [Souche inc | 大搜车](https://blog.souche.com/)\n* [Ruff](https://ruff.io/zh-cn/)\n* [Qiniu | 七牛](https://qiniu.com/)\n* [Head Spring | 恒达时讯](http://www.hdsxtech.com/)\n* [Digital Union | 数字联盟](https://www.shuzilm.cn/)\n* [CityTogo | 兔狗家装](http://tugou.com/)\n* [Mistong | 铭师堂](http://www.mistong.com/)\n* [Tuotuo Internet | 妥妥网络](https://www.finger66.com/web)\n* [Straight flush | 同花顺](http://www.10jqka.com.cn/)\n* [360 Enterprise Security | 360企业安全集团](http://www.360.net/)\n* [MeiTuan | 美团网](http://www.meituan.com)\n* [Wenba. Inc | 上海谦问万答吧云计算科技有限公司 AI学部门](http://www.ailearn100.com/)\n* [PPMoney | 万惠集团](https://www.ppmoney.com/)\n* [Mysoft Yunke | 明源云客](http://www.myunke.com/)\n* [GeekPark | 极客公园](http://geekpark.net/)\n* [Enation Soft Co., Ltd | 易族智汇（北京）科技有限公司](http://www.javamall.com.cn/)\n* [Harmony Cloud | 杭州谐云科技有限公司](http://harmonycloud.cn/)\n* [China Literature | 阅文集团](http://ir.yuewen.com/cn/)\n* [huodongxing | 活动行](http://www.huodongxing.com)\n* [kinhom | 金海马商业集团](http://www.kinhom.com/)\n* [yuntongxun | 北京容联易通信息技术有限公司](http://www.yuntongxun.com/)\n* [YHD | 1号店](http://www.yhd.com/)\n* [51NB | 51信用卡](https://web.u51.com/u51-pc)\n* [Yunlai inc | 云来网络](http://www.yunlai.cn/)\n* [wozaijia | 我在家家居](http://www.wozaijia.com/)\n* [FOR U TRUCKING | 福佑卡车](https://www.fuyoukache.com/)\n* [GUANLAN NETWORKS(HANGZHOU) CO.,LTD | 丁香园](http://www.dxy.cn/)\n* [Bindo Labs Limited](https://bindopos.com/en/)\n* [Value Simplex | 熵简科技](http://valuesimplex.com)\n* [Shanghai Mingyun | 上海明运](http://www.mingluck.com/)\n* [Feidai | 深圳飞贷金融科技](https://www.feidai.com/)\n* [cibfintech | 兴业数字金融](http://www.cibfintech.com)\n* [广州三人行壹佰教育](http://www.100.com)\n* [bangdao-tech | 邦道科技](https://www.bangdao-tech.com/)\n* [CGB | 广发银行](www.cgbchina.com.cn)\n* [Budiot | 萌发物联\u0026玖竹科技](https://www.budiot.com.cn)\n* [ZTE | 中兴通讯股份有限公司](https://www.zte.com.cn)\n* [Envision Digital | 远景智能](https://developer.envisioncn.com/devportal/index.html#/main)\n* [Jianshu | 简书](https://www.jianshu.com)\n* [HYPERS | 宏路数据](https://www.hypers.com/)\n* [yunlong tech | 成都云隆科技有限公司](http://www.yunlongtech.com/)\n* [taojiujiu tech | 涛舅舅网络科技有限公司](http://www.tao-jiujiu.com/)\n* [shunfeng tongcheng tech | 北京顺丰同城科技有限公司](http://www.sf-yoohoo.com)\n* [bread finance | 面包财经](https://www.mbcaijing.com)\n* [Jimi | 机蜜](https://www.jimistore.com)\n* [zhongan | 众安科技信息技术服务有限公司](https://www.zhongan.io)\n* [verystar | 上海费芮网络科技有限公司](https://www.verystar.net)\n* [lanren | 懒人听书](https://www.lrts.me)\n* [IBPS | 广州流辰信息技术有限公司](http://www.bpmhome.cn)\n* [StarZP | 星众派](http://www.xzpql.com/)\n* [Shijiazhuang banknote printing corporation | 石家庄印钞有限公司](http://sjzyc.cbpm.cn)\n* [Changhong | 长虹](http://cn.changhong.com)\n* [bihukeji | 壁虎科技](http://www.91bihu.com)\n* [beibeibang | 贝贝帮](https://www.babybang123.com/)\n* [BiHu | 壁虎科技](http://www.91bihu.com/)\n* [lifebyte | lifebyte](https://www.lifebyte.com.au/)\n* [ECNU | 华东师范大学](https://www.ecnu.edu.cn)\n* [Elemvision | 中科视元科技（杭州）有限公司](http://www.elemvision.com)\n* [fenqile | 分期乐](https://m.fenqile.com/)\n* [efeet | 广州一丈网络科技有限公司](http://www.efeet.cn)\n* [Rocoinfo | 大诚若谷](http://www.rocoinfo.com)\n* [ankerjiedian | 街电](http://www.jiediankeji.com/)\n* [cloudbae | 云宝宝大数据产业发展有限责任公司](http://www.cloudbae.cn)\n\n## Core Contributors\n\n\u003ctable id=\"contributors\"\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\n    \u003ca href=\"https://github.com/chuangker\"\u003e\n      \u003cimg src=\"https://avatars3.githubusercontent.com/u/7939566?v=4\u0026s=100\"\u003e\u003cbr\u003e\u003cspan\u003echuangker\u003c/span\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n  \u003ctd\u003e\n    \u003ca href=\"https://github.com/XadillaX\"\u003e\n      \u003cimg src=\"https://avatars0.githubusercontent.com/u/2842176?v=4\u0026s=100\"\u003e\u003cbr\u003e\u003cspan\u003eXadillaX\u003c/span\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n  \u003ctd\u003e\n    \u003ca href=\"https://github.com/ostoc\"\u003e\n      \u003cimg src=\"https://avatars2.githubusercontent.com/u/3025708?v=4\u0026s=100\"\u003e\u003cbr\u003e\u003cspan\u003eostoc\u003c/span\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n  \u003ctd\u003e\n    \u003ca href=\"https://github.com/xinyu198736\"\u003e\n      \u003cimg src=\"https://avatars3.githubusercontent.com/u/897401?v=4\u0026s=100\"\u003e\u003cbr\u003e\u003cspan\u003exinyu198736\u003c/span\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## License\n\n[GPL-3.0](https://opensource.org/licenses/GPL-3.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasy-mock%2Feasy-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasy-mock%2Feasy-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasy-mock%2Feasy-mock/lists"}