# <img alt="Mockman" width="150" height="150" src="http://orhcxc3kd.bkt.clouddn.com/256x256.png"/>
[中文文档](./README_zh.md)
![](https://img.shields.io/github/repo-size/lancegin/mockman.svg)
![](https://img.shields.io/github/release/lancegin/mockman.svg)
![](https://img.shields.io/github/last-commit/lancegin/mockman.svg)
[![Build Status](https://travis-ci.org/LanceGin/Mockman.svg?branch=master)](https://travis-ci.org/LanceGin/Mockman)
[![Build status](https://ci.appveyor.com/api/projects/status/9hktw5nvhbh44wtm?svg=true)](https://ci.appveyor.com/project/LanceGin/mockman)
> `Mockman` is a powerful and convenient tool that helps you to manage and start mock servers locally.
>
> With the app, you can easily configure the routes, request format and response of a mock server
## Screenshot
![Mockman](https://i.loli.net/2018/11/03/5bdd4dd2bf440.png)
![Logger](https://i.loli.net/2018/11/03/5bdd4deac142f.png)
## Usage
![Feature](http://orhcxc3kd.bkt.clouddn.com/mockman-preview.jpg)
1. Create your mock server - `click the add button`
2. Configure the `name`, `port` and `prefix` of your move server, make sure the port is not in use, or Mockman will give you a error notification.
3. Add some apis for your mock server.
4. Configure the `method`, `route`, `response code`, `latency`, `required request options` and `reponse data` of each api.
5. Start the server - `click the start button`.
6. After all, you can test your api locally.
> Where will your api data be stored?
>
> > Your data will be stored as a `sqlite file` absolutely on your local, the path will be different on different operation system.
>
> > * `%APPDATA%` for Windows
> > * `$XDG_CONFIG_HOME or ~/.config` for Linux
> > * `~/Library/Application Support` for macOS
>
> Be attention before you start https server
>
> > * Mockman is using `self-signed-certification` to create https server
> > * Install [rootCA](https://github.com/LanceGin/Mockman/releases/download/1.0.5/rootCA.pem) on your client and trust it before you send https requests
>
## Todos
### Server
- [x] ipcMain && ipcRender communication
- [x] dababase support
- [x] create a new mock
- [x] update a mock
- [x] remove a mock
- [x] query a mock info
- [x] create an api
- [x] update an api
- [x] remove an api
- [x] query an api info
- [x] start an express server with a mock config
- [x] handle errors while starting the server
### Client
- [x] brand header dislay
- [x] mock sider display
- [x] mock-detail and api-list display
- [x] api-detail display
- [x] create a new mock
- [x] update a mock
- [x] remove a mock
- [x] query a mock info
- [x] create an api
- [x] update an api
- [x] remove an api
- [x] query an api info
- [x] request params check list
- [x] response k-v input group
- [x] response code editor
- [x] add blur event to jsonEditor
- [x] add a log panel to show the logs of an active mock server process
- [x] add https support
- [ ] group the apis with tag
- [ ] check the conflict of all mocks
- [ ] Export/Import mock or api configurations
## License
[![license](https://img.shields.io/github/license/lancegin/mockman.svg)]()
## Contribute
``` bash
# install the dependencies
npm install
# serve with hot reload at localhost:9080
npm run dev
# build mockman
npm run build
# run unit tests
npm test
# lint all JS/Vue component files in `src/`
npm run lint
```
---
没有合适的资源?快使用搜索试试~ 我知道了~
mockman 本地模拟接口
共58个文件
js:24个
vue:6个
png:4个
需积分: 12 0 下载量 104 浏览量
2022-08-31
15:49:27
上传
评论
收藏 822KB RAR 举报
温馨提示
mockman
资源详情
资源评论
资源推荐
收起资源包目录
mockman.rar (58个子文件)
mockman
LanceGin-Mockman-5ed1e33
.travis.yml 1KB
.babelrc 617B
package.json 4KB
test
.eslintrc 208B
unit
index.js 523B
specs
LandingPage.spec.js 387B
karma.conf.js 1KB
e2e
utils.js 445B
index.js 434B
specs
Launch.spec.js 310B
.electron-vue
webpack.main.config.js 2KB
dev-client.js 1KB
dev-runner.js 5KB
webpack.web.config.js 3KB
build.js 3KB
webpack.renderer.config.js 5KB
LICENSE 34KB
static
splash.html 2KB
.gitkeep 0B
dist
electron
.gitkeep 0B
web
.gitkeep 0B
README_zh.md 3KB
appveyor.yml 611B
src
renderer
App.vue 208B
assets
iconfont.eot 2KB
iconfont.ttf 2KB
iconfont.svg 1KB
api-error.png 8KB
iconfont.woff 1KB
mock-error.png 8KB
logo.png 3KB
iconfont.css 2KB
.gitkeep 0B
views
Home.vue 45KB
main.js 422B
components
jsonEditor.vue 2KB
LandingPage
SystemInformation.vue 2KB
LandingPage.vue 3KB
contextMenu.vue 3KB
utils
serverService.js 6KB
resCode.js 2KB
httpsOptions.js 3KB
httpMethod.js 303B
router
index.js 402B
index.ejs 928B
main
index.js 3KB
apiAction.js 3KB
baseModel.js 1KB
mockAction.js 2KB
index.dev.js 715B
.eslintrc.js 733B
.gitignore 173B
README.md 3KB
yarn.lock 433KB
.eslintignore 51B
build
icons
icon.ico 127KB
256x256.png 43KB
icon.icns 659KB
共 58 条
- 1
勤奋笨笨鸟
- 粉丝: 15
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0